#1280 closed defect (fixed)
[magic-removal] Update django.contrib.contenttypes for magic-removal
Reported by: | Esaj | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.contrib.contenttypes
currently uses the old, magic way of getting model objects.
I propose:
- Get rid of the 'Package' model - is there any use for it now that the magic has gone?
- Replace ContentType's 'package' and 'python_module_name' fields with a 'model' field.
Attachments (2)
Change History (4)
by , 19 years ago
Attachment: | models.py.diff added |
---|
by , 19 years ago
Attachment: | contenttypes.diff added |
---|
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The latest patch (contenttypes.diff) updates django.contrib.auth and django.core.management to support the changes as well. I've tested this and it seems to work fine.