Commit cae0efe2 by Alex Gaynor

Fixed #20. Deleting coercing unicode TaggedItems to unicode sohuld now be safe on older pythons.

parent e81f3604
...@@ -33,7 +33,7 @@ class TaggedItemBase(models.Model): ...@@ -33,7 +33,7 @@ class TaggedItemBase(models.Model):
tag = models.ForeignKey(Tag, related_name="%(app_label)s_%(class)s_items") tag = models.ForeignKey(Tag, related_name="%(app_label)s_%(class)s_items")
def __unicode__(self): def __unicode__(self):
return "%s tagged with %s" % (self.content_object, self.tag) return u"%s tagged with %s" % (self.content_object, self.tag)
class Meta: class Meta:
abstract = True abstract = True
......
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