Ticket #6051: wrong_field_name.patch
File wrong_field_name.patch, 446 bytes (added by , 17 years ago) |
---|
-
generic.py
118 118 return self.object_id_field_name 119 119 120 120 def m2m_reverse_name(self): 121 return self. object_id_field_name121 return self.rel.to._meta.pk.name 122 122 123 123 def contribute_to_class(self, cls, name): 124 124 super(GenericRelation, self).contribute_to_class(cls, name)