#33481: remove_stale_contenttypes causes data loss
-------------------------------------------+------------------------
Reporter: Johannes Maron | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: dev
Severity: Release blocker | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
I just wanted to remove stale contenttypes from a system and noticed a
pretty significant bug.
The command prints a message before you need to confirm the deletion that
reads:
> This list doesn't include any cascade deletions to data outside of
Django's models (uncommon).
However, a quick investigation on the objects that are to be deleted
includes objects outside of Django's scope.
In my case:
> - 2 auth.Group_permissions object(s)
> - 7185 joeflow.Task object(s)
> - 5519 joeflow.Task_parent_task_set object(s)
This misinformation can cause users to delete data without double-
checking.
--
Ticket URL: <https://code.djangoproject.com/ticket/33481>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.bbc84af7f45577b1068af8c5aca806bd%40djangoproject.com.