Ticket #5373: 5373_related.py.diff
File 5373_related.py.diff, 680 bytes (added by , 14 years ago) |
---|
-
django/db/models/fields/related.py
111 111 112 112 def set_attributes_from_rel(self): 113 113 self.name = self.name or (self.rel.to._meta.object_name.lower() + '_' + self.rel.to._meta.pk.name) 114 if self.verbose_name is None: 115 self.verbose_name = self.rel.to._meta.verbose_name 114 self.verbose_name = self.rel.to._meta.verbose_name 116 115 self.rel.field_name = self.rel.field_name or self.rel.to._meta.pk.name 117 116 118 117 def do_related_class(self, other, cls):