Ticket #6055: generic.patch

File generic.patch, 451 bytes (added by David Cramer, 17 years ago)
  • generic.py

     
    115115        return self.rel.to._meta.db_table
    116116
    117117    def m2m_column_name(self):
    118         return self.object_id_field_name
     118        return self.rel.to._meta.get_field(self.object_id_field_name).column
    119119       
    120120    def m2m_reverse_name(self):
    121121        return self.object_id_field_name
Back to Top