Commit 0e9f1172 by Florian Apolloner

Merge pull request #196 from gizmag/set-taggable-manager-attname

remember to set attname if django < 1.7
parents c8257843 bb5a9642
...@@ -92,7 +92,7 @@ class TaggableManager(RelatedField, Field): ...@@ -92,7 +92,7 @@ class TaggableManager(RelatedField, Field):
def contribute_to_class(self, cls, name): def contribute_to_class(self, cls, name):
if VERSION < (1, 7): if VERSION < (1, 7):
self.name = self.column = name self.name = self.column = self.attname = name
else: else:
self.set_attributes_from_name(name) self.set_attributes_from_name(name)
self.model = cls self.model = cls
......
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