Opened 8 years ago

Closed 6 years ago

#17149 closed Cleanup/optimization (fixed)

MediaDefiningClass not used as base class for other form meta classes

Reported by: bradley.ayers@… Owned by: nobody
Component: Forms Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I think django.forms.widgets.MediaDefiningClass should be a base class for django.forms.forms.DeclarativeFieldsMetaclass and django.forms.models.ModelFormMetaclass

Change History (2)

comment:1 Changed 8 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

This code is duplicated in the __new__ method of these classes:

        if 'media' not in attrs:
   = media_property(new_class)

comment:2 Changed 6 years ago by Claude Paroz

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top