Mercurial > public > sg101
diff gpp/forums/admin.py @ 98:d0d779dd0832
Forums: flag posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 21:45:35 +0000 |
parents | 96eec1ed0fd3 |
children | e67c4dd98db5 |
line wrap: on
line diff
--- a/gpp/forums/admin.py Sun Sep 13 19:58:31 2009 +0000 +++ b/gpp/forums/admin.py Sun Sep 13 21:45:35 2009 +0000 @@ -7,6 +7,7 @@ from forums.models import Forum from forums.models import Topic from forums.models import Post +from forums.models import FlaggedPost class CategoryAdmin(admin.ModelAdmin): @@ -43,7 +44,12 @@ save_on_top = True +class FlaggedPostAdmin(admin.ModelAdmin): + list_display = ('__unicode__', 'flag_date', 'get_post_url') + + admin.site.register(Category, CategoryAdmin) admin.site.register(Forum, ForumAdmin) admin.site.register(Topic, TopicAdmin) admin.site.register(Post, PostAdmin) +admin.site.register(FlaggedPost, FlaggedPostAdmin)