]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/admin.py
Added the option to limit the tags creation. It will defaults to false, and there...
[osqa.git] / forum / admin.py
index 88643b92a9cd60df4b9cd5275ca63751e350f578..e77080600564ead399d8232d841ac1013aef570d 100644 (file)
@@ -3,11 +3,10 @@
 from django.contrib import admin
 from models import *
 
-
 class AnonymousQuestionAdmin(admin.ModelAdmin):
     """AnonymousQuestion admin class"""
 
-class QuestionAdmin(admin.ModelAdmin):
+class NodeAdmin(admin.ModelAdmin):
     """Question admin class"""
 
 class TagAdmin(admin.ModelAdmin):
@@ -43,7 +42,7 @@ class BadgeAdmin(admin.ModelAdmin):
 class ReputeAdmin(admin.ModelAdmin):
     """  admin class"""
 
-class ActivityAdmin(admin.ModelAdmin):
+class ActionAdmin(admin.ModelAdmin):
     """  admin class"""
     
 #class BookAdmin(admin.ModelAdmin):
@@ -55,20 +54,13 @@ class ActivityAdmin(admin.ModelAdmin):
 #class BookAuthorRssAdmin(admin.ModelAdmin):
 #    """  admin class"""
     
-    
-admin.site.register(Question, QuestionAdmin)
+admin.site.register(Node, NodeAdmin)
 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(Action, ActionAdmin)
 #admin.site.register(Book, BookAdmin)
 #admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin)
 #admin.site.register(BookAuthorRss, BookAuthorRssAdmin)