1 # -*- coding: utf-8 -*-
3 from django.contrib import admin
7 class AnonymousQuestionAdmin(admin.ModelAdmin):
8 """AnonymousQuestion admin class"""
10 class QuestionAdmin(admin.ModelAdmin):
11 """Question admin class"""
13 class TagAdmin(admin.ModelAdmin):
16 class Answerdmin(admin.ModelAdmin):
17 """Answer admin class"""
19 class CommentAdmin(admin.ModelAdmin):
22 class VoteAdmin(admin.ModelAdmin):
25 class FlaggedItemAdmin(admin.ModelAdmin):
28 class FavoriteQuestionAdmin(admin.ModelAdmin):
31 class QuestionRevisionAdmin(admin.ModelAdmin):
34 class AnswerRevisionAdmin(admin.ModelAdmin):
37 class AwardAdmin(admin.ModelAdmin):
40 class BadgeAdmin(admin.ModelAdmin):
43 class ReputeAdmin(admin.ModelAdmin):
46 class ActivityAdmin(admin.ModelAdmin):
49 #class BookAdmin(admin.ModelAdmin):
52 #class BookAuthorInfoAdmin(admin.ModelAdmin):
55 #class BookAuthorRssAdmin(admin.ModelAdmin):
59 admin.site.register(Question, QuestionAdmin)
60 admin.site.register(Tag, TagAdmin)
61 admin.site.register(Answer, Answerdmin)
62 admin.site.register(Comment, CommentAdmin)
63 admin.site.register(Vote, VoteAdmin)
64 admin.site.register(FlaggedItem, FlaggedItemAdmin)
65 admin.site.register(FavoriteQuestion, FavoriteQuestionAdmin)
66 admin.site.register(QuestionRevision, QuestionRevisionAdmin)
67 admin.site.register(AnswerRevision, AnswerRevisionAdmin)
68 admin.site.register(Badge, BadgeAdmin)
69 admin.site.register(Award, AwardAdmin)
70 admin.site.register(Repute, ReputeAdmin)
71 admin.site.register(Activity, ActivityAdmin)
72 #admin.site.register(Book, BookAdmin)
73 #admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin)
74 #admin.site.register(BookAuthorRss, BookAuthorRssAdmin)