Ticket #14629: models.diff

File models.diff, 909 bytes (added by OldTroll, 14 years ago)

Diff of Corrections to Models.txt

  • models.txt

     
    12131213from that base class.
    12141214
    12151215Overriding fields in a parent model leads to difficulties in areas such as
    1216 initialising new instances (specifying which field is being intialised in
     1216initialising new instances (specifying which field is being initialized in
    12171217``Model.__init__``) and serialization. These are features which normal Python
    12181218class inheritance doesn't have to deal with in quite the same way, so the
    1219 difference between Django model inheritance and Python class inheritance isn't
    1220 merely arbitrary.
     1219difference between Django model inheritance and Python class inheritance isn't 
     1220arbitrary.
    12211221
    12221222This restriction only applies to attributes which are
    12231223:class:`~django.db.models.fields.Field` instances. Normal Python attributes
Back to Top