Opened 16 years ago
Closed 16 years ago
#7621 closed (fixed)
Use super(..., cls).__new__ instead of type.__new__ in metaclasses django.db.models.ModelBase and django.newforms.forms.DeclarativeFieldsMetaclass
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | 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
As discussed on django-developers@…, here is a patch for django.db.models.ModelBase.new and django.newforms.forms.DeclarativeFieldsMetaclass.new to use super instead of type to chain up.
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | metaclass.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [7846]) Fixed #7621 -- Enable superclassing of the various metaclasses we use.
Also tidy up some initialisation code in django.db.models.base.ModelBase.
Thanks, Christian Tanzer.