Ticket #6844: generic_relations_inheritance.diff
File generic_relations_inheritance.diff, 746 bytes (added by , 17 years ago) |
---|
-
base.py
101 101 new_class._meta.parents[base] = field 102 102 else: 103 103 names = [f.name for f in new_class._meta.local_fields + new_class._meta.many_to_many] 104 for field in base._meta.local_fields :104 for field in base._meta.local_fields+base._meta.many_to_many: 105 105 if field.name in names: 106 106 raise FieldError('Local field %r in class %r clashes with field of similar name from abstract base class %r' 107 107 % (field.name, name, base.__name__))