Ticket #6844: generic_relations_inheritance.diff

File generic_relations_inheritance.diff, 746 bytes (added by cide@…, 13 years ago)

Patch that locally fixes the issue

  • base.py

     
    101101                new_class._meta.parents[base] = field
    102102            else:
    103103                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:
    105105                    if field.name in names:
    106106                        raise FieldError('Local field %r in class %r clashes with field of similar name from abstract base class %r'
    107107                                % (field.name, name, base.__name__))
Back to Top