Add a new migration which removes/fixes the old migration
[mediagoblin.git] / mediagoblin / db / mixin.py
index 3e9ed3a0146133b1c94a0c4385addb2e3b6d531e..1f2e7ec30262d762deab08704059cc15b02bd6f2 100644 (file)
@@ -305,13 +305,20 @@ class MediaCommentMixin(object):
         """
         return cleaned_markdown_conversion(self.content)
 
-    def __repr__(self):
+    def __unicode__(self):
         return u'<{klass} #{id} {author} "{comment}">'.format(
             klass=self.__class__.__name__,
             id=self.id,
             author=self.get_author,
             comment=self.content)
 
+    def __repr__(self):
+        return '<{klass} #{id} {author} "{comment}">'.format(
+            klass=self.__class__.__name__,
+            id=self.id,
+            author=self.get_author,
+            comment=self.content)
+
 
 class CollectionMixin(GenerateSlugMixin):
     def check_slug_used(self, slug):