Ticket #3906: generic.py.patch
File generic.py.patch, 466 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.model._meta.pk.attname 122 122 123 123 def contribute_to_class(self, cls, name): 124 124 super(GenericRelation, self).contribute_to_class(cls, name)