Ticket #686: trac#686-usermixin.url_for_self.diff
File trac#686-usermixin.url_for_self.diff, 560 bytes (added by , 11 years ago) |
---|
-
mediagoblin/db/mixin.py
diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index 57b27d8..7e21673 100644
a b class UserMixin(object): 46 46 def bio_html(self): 47 47 return cleaned_markdown_conversion(self.bio) 48 48 49 def url_for_self(self, urlgen, **kwargs): 50 """Generate a URL for this User's home page.""" 51 52 return urlgen( 53 'mediagoblin.user_pages.user_home', 54 user=self.username, 55 **kwargs) 56 49 57 50 58 class GenerateSlugMixin(object): 51 59 """