Commit bb5a9642 by Justin Arulnathan

remember to set attname if django < 1.7

parent a0b63448
......@@ -92,7 +92,7 @@ class TaggableManager(RelatedField, Field):
def contribute_to_class(self, cls, name):
if VERSION < (1, 7):
self.name = self.column = name
self.name = self.column = self.attname = name
else:
self.set_attributes_from_name(name)
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