Ticket #6051: wrong_field_name.patch

File wrong_field_name.patch, 446 bytes (added by litnimax, 8 years ago)
  • 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.rel.to._meta.pk.name
    122122
    123123    def contribute_to_class(self, cls, name):
    124124        super(GenericRelation, self).contribute_to_class(cls, name)
Back to Top