diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-03 01:44:36 -0700 |
---|---|---|
committer | fadeev <fadeev@bacchus.bio.uci.edu> | 2010-06-03 01:45:30 -0700 |
commit | 02247d157b3da4d0711b8858bf758aefdf64c04d (patch) | |
tree | a3231ac1392bc815bdd75a1e2d0ed21fa94fbe4d /forum/admin.py | |
parent | 5dfebd5164518572b9f1c9822990ee476854304d (diff) | |
download | askbot-02247d157b3da4d0711b8858bf758aefdf64c04d.tar.gz askbot-02247d157b3da4d0711b8858bf758aefdf64c04d.tar.bz2 askbot-02247d157b3da4d0711b8858bf758aefdf64c04d.zip |
general debugging, still may be broken
Diffstat (limited to 'forum/admin.py')
-rw-r--r-- | forum/admin.py | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/forum/admin.py b/forum/admin.py index 41b68b9a..c5898574 100644 --- a/forum/admin.py +++ b/forum/admin.py @@ -1,6 +1,9 @@ +""" +linking of forum modules to admin interface +""" # -*- coding: utf-8 -*- from django.contrib import admin -from forum.models import * +from forum import models class AnonymousQuestionAdmin(admin.ModelAdmin): """AnonymousQuestion admin class""" @@ -53,19 +56,19 @@ class ActivityAdmin(admin.ModelAdmin): #class BookAuthorRssAdmin(admin.ModelAdmin): # """ admin class""" -admin.site.register(Question, QuestionAdmin) -admin.site.register(Tag, TagAdmin) -admin.site.register(Answer, Answerdmin) -admin.site.register(Comment, CommentAdmin) -admin.site.register(Vote, VoteAdmin) -admin.site.register(FlaggedItem, FlaggedItemAdmin) -admin.site.register(FavoriteQuestion, FavoriteQuestionAdmin) -admin.site.register(QuestionRevision, QuestionRevisionAdmin) -admin.site.register(AnswerRevision, AnswerRevisionAdmin) -admin.site.register(Badge, BadgeAdmin) -admin.site.register(Award, AwardAdmin) -admin.site.register(Repute, ReputeAdmin) -admin.site.register(Activity, ActivityAdmin) +admin.site.register(models.Question, QuestionAdmin) +admin.site.register(models.Tag, TagAdmin) +admin.site.register(models.Answer, Answerdmin) +admin.site.register(models.Comment, CommentAdmin) +admin.site.register(models.Vote, VoteAdmin) +admin.site.register(models.FlaggedItem, FlaggedItemAdmin) +admin.site.register(models.FavoriteQuestion, FavoriteQuestionAdmin) +admin.site.register(models.QuestionRevision, QuestionRevisionAdmin) +admin.site.register(models.AnswerRevision, AnswerRevisionAdmin) +admin.site.register(models.Badge, BadgeAdmin) +admin.site.register(models.Award, AwardAdmin) +admin.site.register(models.Repute, ReputeAdmin) +admin.site.register(models.Activity, ActivityAdmin) #admin.site.register(Book, BookAdmin) #admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin) #admin.site.register(BookAuthorRss, BookAuthorRssAdmin) |