summaryrefslogtreecommitdiff
path: root/packages/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/admin.py')
-rw-r--r--packages/admin.py32
1 files changed, 27 insertions, 5 deletions
diff --git a/packages/admin.py b/packages/admin.py
index 14fa8960..4c170247 100644
--- a/packages/admin.py
+++ b/packages/admin.py
@@ -1,21 +1,43 @@
from django.contrib import admin
-from .models import PackageRelation, FlagRequest
+from .models import PackageRelation, FlagRequest, Signoff, SignoffSpecification
class PackageRelationAdmin(admin.ModelAdmin):
- list_display = ('user', 'pkgbase', 'type', 'created')
+ list_display = ('pkgbase', 'user', 'type', 'created')
list_filter = ('type', 'user')
- search_fields = ('user__username', 'pkgbase')
+ search_fields = ('pkgbase', 'user__username')
+ ordering = ('pkgbase', 'user')
date_hierarchy = 'created'
class FlagRequestAdmin(admin.ModelAdmin):
- list_display = ('pkgbase', 'created', 'who', 'is_spam', 'is_legitimate',
- 'message')
+ list_display = ('pkgbase', 'version', 'created', 'who', 'is_spam',
+ 'is_legitimate', 'message')
list_filter = ('is_spam', 'is_legitimate')
search_fields = ('pkgbase', 'user_email', 'message')
+ ordering = ('-created',)
date_hierarchy = 'created'
+
+class SignoffAdmin(admin.ModelAdmin):
+ list_display = ('pkgbase', 'full_version', 'arch', 'repo',
+ 'user', 'created', 'revoked')
+ list_filter = ('arch', 'repo', 'user')
+ search_fields = ('pkgbase', 'user__username')
+ ordering = ('-created',)
+ date_hierarchy = 'created'
+
+class SignoffSpecificationAdmin(admin.ModelAdmin):
+ list_display = ('pkgbase', 'full_version', 'arch', 'repo',
+ 'user', 'created', 'comments')
+ list_filter = ('arch', 'repo', 'user')
+ search_fields = ('pkgbase', 'user__username')
+ ordering = ('-created',)
+ date_hierarchy = 'created'
+
+
admin.site.register(PackageRelation, PackageRelationAdmin)
admin.site.register(FlagRequest, FlagRequestAdmin)
+admin.site.register(Signoff, SignoffAdmin)
+admin.site.register(SignoffSpecification, SignoffSpecificationAdmin)
# vim: set ts=4 sw=4 et: