Opened 16 years ago

Closed 16 years ago

#7620 closed (fixed)

Use super(..., cls).__new__ instead of type.__new__ in metaclass django.newforms.MediaDefiningClass

Reported by: Christian Tanzer <tanzer@…> Owned by: nobody
Component: Forms Version: newforms-admin
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.newforms.MediaDefiningClass.new to use super instead of type to chain up.

Attachments (1)

widgets.diff (685 bytes ) - added by Christian Tanzer <tanzer@…> 16 years ago.

Download all attachments as: .zip

Change History (3)

by Christian Tanzer <tanzer@…>, 16 years ago

Attachment: widgets.diff added

comment:1 by Christian Tanzer <tanzer@…>, 16 years ago

Version: SVNnewforms-admin

comment:2 by Brian Rosner, 16 years ago

Resolution: fixed
Status: newclosed

(In [7834]) newforms-admin: Fixed #7620 -- Changed a hard-coded call to type.new to use super in MediaDefiningClass metaclass. Thanks Christian Tanzer.

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