Commit 8b480717 by Collin Anderson Committed by Florian Apolloner

fixed field.rel.through AttributeError: 'unicode' object has no attribute '_meta'

parent f3bc9db0
......@@ -269,6 +269,7 @@ class TaggableManager(RelatedField, Field):
if isinstance(self.through, six.string_types):
def resolve_related_class(field, model, cls):
self.through = model
self.rel.through = model
self.post_through_setup(cls)
add_lazy_relation(
cls, self, self.through, resolve_related_class
......
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