Commit bec0cf13 by alex

Provide more debug information in an exception. Refs #3.

parent 73f45810
......@@ -62,7 +62,7 @@ class TaggableManager(object):
qs = TaggedItem.objects.filter(pk__in=value)
else:
# Fucking flip-floppers.
raise ValueError("You can't combine Tag objects and strings, pick one!")
raise ValueError("You can't combine Tag objects and strings. '%s' was provided." % value)
sql, params = qs.values_list("pk", flat=True).query.as_sql()
return QueryWrapper(("(%s)" % sql), params)
......
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