1 # -*- coding: utf-8 -*-
3 from django.contrib import admin
6 class AnonymousQuestionAdmin(admin.ModelAdmin):
7 """AnonymousQuestion admin class"""
9 class QuestionAdmin(admin.ModelAdmin):
10 """Question admin class"""
12 class TagAdmin(admin.ModelAdmin):
15 class Answerdmin(admin.ModelAdmin):
16 """Answer admin class"""
18 class CommentAdmin(admin.ModelAdmin):
21 class VoteAdmin(admin.ModelAdmin):
24 class FlaggedItemAdmin(admin.ModelAdmin):
27 class FavoriteQuestionAdmin(admin.ModelAdmin):
30 class QuestionRevisionAdmin(admin.ModelAdmin):
33 class AnswerRevisionAdmin(admin.ModelAdmin):
36 class AwardAdmin(admin.ModelAdmin):
39 class BadgeAdmin(admin.ModelAdmin):
42 class ReputeAdmin(admin.ModelAdmin):
45 class ActivityAdmin(admin.ModelAdmin):
48 #class BookAdmin(admin.ModelAdmin):
51 #class BookAuthorInfoAdmin(admin.ModelAdmin):
54 #class BookAuthorRssAdmin(admin.ModelAdmin):
57 admin.site.register(Question, QuestionAdmin)
58 admin.site.register(Tag, TagAdmin)
59 admin.site.register(Answer, Answerdmin)
60 admin.site.register(Comment, CommentAdmin)
61 admin.site.register(Vote, VoteAdmin)
62 admin.site.register(FlaggedItem, FlaggedItemAdmin)
63 admin.site.register(FavoriteQuestion, FavoriteQuestionAdmin)
64 admin.site.register(QuestionRevision, QuestionRevisionAdmin)
65 admin.site.register(AnswerRevision, AnswerRevisionAdmin)
66 admin.site.register(Badge, BadgeAdmin)
67 admin.site.register(Award, AwardAdmin)
68 admin.site.register(Repute, ReputeAdmin)
69 admin.site.register(Activity, ActivityAdmin)
70 #admin.site.register(Book, BookAdmin)
71 #admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin)
72 #admin.site.register(BookAuthorRss, BookAuthorRssAdmin)