summaryrefslogtreecommitdiff
path: root/packages/admin.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-14 22:02:39 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-14 22:02:39 -0500
commita2db6164a890d91307cbfed6794776f4f17c4955 (patch)
tree610deaae4780da796aa6b466c4b20868306926b8 /packages/admin.py
parent4c22dbf07b12b172d9662c8d809fe0fb7b616a2f (diff)
parentd198137d718a5dfcaacedc3e2e3adf86c3192cd7 (diff)
Merge commit 'd198137' (update)
Diffstat (limited to 'packages/admin.py')
-rw-r--r--packages/admin.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/admin.py b/packages/admin.py
index 01b6ed6c..14fa8960 100644
--- a/packages/admin.py
+++ b/packages/admin.py
@@ -1,12 +1,21 @@
from django.contrib import admin
-from .models import PackageRelation
+from .models import PackageRelation, FlagRequest
class PackageRelationAdmin(admin.ModelAdmin):
list_display = ('user', 'pkgbase', 'type', 'created')
list_filter = ('type', 'user')
search_fields = ('user__username', 'pkgbase')
+ date_hierarchy = 'created'
+
+class FlagRequestAdmin(admin.ModelAdmin):
+ list_display = ('pkgbase', 'created', 'who', 'is_spam', 'is_legitimate',
+ 'message')
+ list_filter = ('is_spam', 'is_legitimate')
+ search_fields = ('pkgbase', 'user_email', 'message')
+ date_hierarchy = 'created'
admin.site.register(PackageRelation, PackageRelationAdmin)
+admin.site.register(FlagRequest, FlagRequestAdmin)
# vim: set ts=4 sw=4 et: