#18682: Make the deletion of stale content types safer
--------------------------------------+------------------------------------
Reporter: aaugustin | Owner: speijnik
Type: Cleanup/optimization | Status: assigned
Component: contrib.contenttypes | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by speijnik):
Working on this at EP14 sprint.
Displaying the object count alone is doable and I actually do have code
doing just that already.
I guess it would be a good idea to actually show the number of objects
grouped by their type/model.
Without doing that this will most likely always show a non-zero count, as
permissions are always represented this way and
count towards that number.
Also, I believe that showing each individual object is a rather bad idea,
think of thousands of objects there...
So right now, the output looks like this:
{{{
The following content types are stale and need to be deleted:
app | a (29 objects remaining)
}}}
What I believe would be useful in this case, would be an output in the
form of
{{{
The following content types are stale and need to be deleted:
app | a
- permission objects to be deleted: 3
- [...] objects to be delted: 26
}}}
This way things are pretty clear. The exact formatting might need to look
different though.
--
Ticket URL: <https://code.djangoproject.com/ticket/18682#comment:6>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.d8a5c027f1cc0e1aee7a79b665a74153%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.