Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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


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) (2.3 KB) - added by Esaj 16 years ago.
contenttypes.diff (10.4 KB) - added by Esaj 16 years ago.

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by Esaj

Attachment: added

Changed 16 years ago by Esaj

Attachment: contenttypes.diff added

comment:1 Changed 16 years ago by Esaj

The latest patch (contenttypes.diff) updates django.contrib.auth and to support the changes as well. I've tested this and it seems to work fine.

comment:2 Changed 16 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2411]) magic-removal: Fixed #1280 -- Removed contenttypes.Package model and changed ContentType field to have a 'model' field

Note: See TracTickets for help on using tickets.
Back to Top