Ticket #5373: 5373.5.diff
File 5373.5.diff, 976 bytes (added by , 14 years ago) |
---|
-
django/db/models/fields/related.py
13 13 from django.core import exceptions 14 14 from django import forms 15 15 16 17 16 RECURSIVE_RELATIONSHIP_CONSTANT = 'self' 18 17 19 18 pending_lookups = {} … … 111 110 112 111 def set_attributes_from_rel(self): 113 112 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: 113 if (self.verbose_name != self.rel.to._meta.verbose_name): 114 print "**I can get here**" 115 if self.verbose_name is None: 115 116 self.verbose_name = self.rel.to._meta.verbose_name 117 print "----------- but never here -----------" 116 118 self.rel.field_name = self.rel.field_name or self.rel.to._meta.pk.name 117 119 118 120 def do_related_class(self, other, cls):