Ticket #3906: generic.py.patch

File generic.py.patch, 466 bytes (added by codefi@…, 17 years ago)

generic.py patch

  • generic.py

     
    118118        return self.object_id_field_name
    119119
    120120    def m2m_reverse_name(self):
    121         return self.object_id_field_name
     121       return self.model._meta.pk.attname
    122122
    123123    def contribute_to_class(self, cls, name):
    124124        super(GenericRelation, self).contribute_to_class(cls, name)
Back to Top