projects
/
mediagoblin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new migration which removes/fixes the old migration
[mediagoblin.git]
/
mediagoblin
/
db
/
mixin.py
diff --git
a/mediagoblin/db/mixin.py
b/mediagoblin/db/mixin.py
index 3e9ed3a0146133b1c94a0c4385addb2e3b6d531e..1f2e7ec30262d762deab08704059cc15b02bd6f2 100644
(file)
--- a/
mediagoblin/db/mixin.py
+++ b/
mediagoblin/db/mixin.py
@@
-305,13
+305,20
@@
class MediaCommentMixin(object):
"""
return cleaned_markdown_conversion(self.content)
"""
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)
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):
class CollectionMixin(GenerateSlugMixin):
def check_slug_used(self, slug):