#31213: Add flag to remove_stale_contenttypes to remove entries for nonexistent
apps.
------------------------------------------------+------------------------
               Reporter:  Gowtham Kommineni     |          Owner:  nobody
                   Type:  Uncategorized         |         Status:  new
              Component:  contrib.contenttypes  |        Version:  3.0
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  1
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 remove_stale_contenttypes only removes stale content types for stale
 models in installed apps. It doesn't remove stale content types whose app
 was either removed or renamed.

 Creating this ticket as per the discussion on
 https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin
 /django-developers/content%7Csort:date/django-
 developers/0WrbU_Kc2Z0/3iRmkpLYCgAJ.

 To avoid data loss, add a flag in the management command to get everyone
 on board. The flag being off by default and only turns on if you know what
 you’re doing and enable it. At any rate i believe from what i can i see in
 the code it will still prompt you to delete the items it finds unless you
 added the ——no—input which prevents helps with data loss.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31213>
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/053.e1afb185b68f71fa63f69c7c0d71cf4b%40djangoproject.com.

Reply via email to