Ticket #14629: models.diff
File models.diff, 909 bytes (added by , 14 years ago) |
---|
-
models.txt
1213 1213 from that base class. 1214 1214 1215 1215 Overriding fields in a parent model leads to difficulties in areas such as 1216 initialising new instances (specifying which field is being in tialised in1216 initialising new instances (specifying which field is being initialized in 1217 1217 ``Model.__init__``) and serialization. These are features which normal Python 1218 1218 class 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 merelyarbitrary.1219 difference between Django model inheritance and Python class inheritance isn't 1220 arbitrary. 1221 1221 1222 1222 This restriction only applies to attributes which are 1223 1223 :class:`~django.db.models.fields.Field` instances. Normal Python attributes