id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 3278 newforms class names get overwritten russblau@… Adrian Holovaty "In root/django/trunk/django/newforms/forms.py, the definition of DeclarativeFieldsMetaclass inadvertently overwrites the Forms class's name: 29 class DeclarativeFieldsMetaclass(type): 30 ""Metaclass that converts Field attributes to a dictionary called 'fields'."" 31 def __new__(cls, name, bases, attrs): 32 fields = [(name, attrs.pop(name)) for name, obj in attrs.items() if isinstance(obj, Field)] 33 fields.sort(lambda x, y: cmp(x[1].creation_counter, y[1].creation_counter)) 34 attrs['fields'] = SortedDictFromList(fields) 35 return type.__new__(cls, name, bases, attrs) Fix: In line 32 [only], change ""name"" to anything else! (Note that ""name"" is also one of the method arguments!) " defect closed Forms normal fixed Unreviewed 0 0 0 0 0 0