#5177: ContentType should purge orphaned models
---------------------------------------------------+------------------------
Reporter: Rob Hudson <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
Contrib apps
Version: SVN | Resolution:
Keywords: | Stage:
Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------------------+------------------------
Changes (by Rob Hudson <[EMAIL PROTECTED]>):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
See: http://groups.google.com/group/django-
developers/browse_thread/thread/c0a99afe82d4eaa8
The first patch works but I haven't tested fully. I had assumed I would
also have to figure out how to manage the various permissions tables but
it seems to be taking care of itself. I looked to see if the delete() on
the ContentType object had some trickery to update the permissions but
didn't find anything.
This doesn't remove the orphaned model tables themselves either, which is
probably good... the idea for this patch was to avoid having to delete
rows in the contenttype and various permissions tables, dropping a table
is easy enough.
--
Ticket URL: <http://code.djangoproject.com/ticket/5177#comment:1>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---