Ticket #12568: subfieldbase-fix.diff
File subfieldbase-fix.diff, 502 bytes (added by , 15 years ago) |
---|
-
django/db/models/fields/subclassing.py
91 91 92 92 def __get__(self, obj, type=None): 93 93 if obj is None: 94 raise AttributeError('Can only be accessed via an instance.')94 return self 95 95 return obj.__dict__[self.field.name] 96 96 97 97 def __set__(self, obj, value):