We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fc1142 commit 53b22fbCopy full SHA for 53b22fb
1 file changed
reversion_compare/compare.py
@@ -152,7 +152,11 @@ def get_many_to_many(self):
152
elif self.value is DOES_NOT_EXIST:
153
return {}, {}, [] # TODO: refactor that
154
155
- ids = frozenset(map(force_text, self.value))
+ try:
156
+ ids = frozenset(map(force_text, self.value))
157
+ except(TypeError):
158
+ # catch errors e.g. produced by taggit's TaggableManager
159
+ return {}, {}, [] # TODO: refactor that
160
161
# Get the related model of the current field:
162
return self.get_many_to_something(ids, self.field.rel.to)
0 commit comments