Ticket #15947: base.diff
File base.diff, 561 bytes (added by , 14 years ago) |
---|
-
django/db/models/base.py
586 586 delete.alters_data = True 587 587 588 588 def _get_FIELD_display(self, field): 589 value = getattr(self, field.attname)589 value = field.to_python(getattr(self, field.attname)) 590 590 return force_unicode(dict(field.flatchoices).get(value, value), strings_only=True) 591 591 592 592 def _get_next_or_previous_by_FIELD(self, field, is_next, **kwargs):