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