]> git.openstreetmap.org Git - osqa.git/blob - forum/admin.py
Initial commit
[osqa.git] / forum / admin.py
1 # -*- coding: utf-8 -*-
2
3 from django.contrib import admin
4 from models import *
5
6
7 class AnonymousQuestionAdmin(admin.ModelAdmin):
8     """AnonymousQuestion admin class"""
9
10 class QuestionAdmin(admin.ModelAdmin):
11     """Question admin class"""
12
13 class TagAdmin(admin.ModelAdmin):
14     """Tag admin class"""
15
16 class Answerdmin(admin.ModelAdmin):
17     """Answer admin class"""
18
19 class CommentAdmin(admin.ModelAdmin):
20     """  admin class"""
21
22 class VoteAdmin(admin.ModelAdmin):
23     """  admin class"""
24
25 class FlaggedItemAdmin(admin.ModelAdmin):
26     """  admin class"""
27
28 class FavoriteQuestionAdmin(admin.ModelAdmin):
29     """  admin class"""
30
31 class QuestionRevisionAdmin(admin.ModelAdmin):
32     """  admin class"""
33
34 class AnswerRevisionAdmin(admin.ModelAdmin):
35     """  admin class"""
36
37 class AwardAdmin(admin.ModelAdmin):
38     """  admin class"""
39
40 class BadgeAdmin(admin.ModelAdmin):
41     """  admin class"""
42
43 class ReputeAdmin(admin.ModelAdmin):
44     """  admin class"""
45
46 class ActivityAdmin(admin.ModelAdmin):
47     """  admin class"""
48     
49 #class BookAdmin(admin.ModelAdmin):
50 #    """  admin class"""
51     
52 #class BookAuthorInfoAdmin(admin.ModelAdmin):
53 #    """  admin class"""
54     
55 #class BookAuthorRssAdmin(admin.ModelAdmin):
56 #    """  admin class"""
57     
58     
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)