Commit 6c6936ef by Alex Gaynor

Merge branch 'master' of github.com:alex/django-taggit

parents 684bb200 2a1ae585
...@@ -110,6 +110,12 @@ class TaggableManager(RelatedField): ...@@ -110,6 +110,12 @@ class TaggableManager(RelatedField):
def m2m_reverse_name(self): def m2m_reverse_name(self):
return self.through._meta.get_field_by_name("tag")[0].column return self.through._meta.get_field_by_name("tag")[0].column
def m2m_target_field_name(self):
return self.model._meta.pk.name
def m2m_reverse_target_field_name(self):
return self.rel.to._meta.pk.name
def m2m_column_name(self): def m2m_column_name(self):
if self.use_gfk: if self.use_gfk:
return self.through._meta.virtual_fields[0].fk_field return self.through._meta.virtual_fields[0].fk_field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment