summaryrefslogtreecommitdiffstats
path: root/packages/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/admin.py')
-rw-r--r--packages/admin.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/admin.py b/packages/admin.py
index 0589209..d43cecc 100644
--- a/packages/admin.py
+++ b/packages/admin.py
@@ -1,6 +1,7 @@
from django.contrib import admin
-from .models import PackageRelation, FlagRequest, Signoff, SignoffSpecification
+from .models import (PackageRelation, FlagRequest,
+ Signoff, SignoffSpecification, Update)
class PackageRelationAdmin(admin.ModelAdmin):
list_display = ('pkgbase', 'user', 'type', 'created')
@@ -9,6 +10,7 @@ class PackageRelationAdmin(admin.ModelAdmin):
ordering = ('pkgbase', 'user')
date_hierarchy = 'created'
+
class FlagRequestAdmin(admin.ModelAdmin):
list_display = ('pkgbase', 'version', 'repo', 'created', 'who', 'is_spam',
'is_legitimate', 'message')
@@ -35,9 +37,19 @@ class SignoffSpecificationAdmin(admin.ModelAdmin):
date_hierarchy = 'created'
+class UpdateAdmin(admin.ModelAdmin):
+ list_display = ('pkgname', 'repo', 'arch', 'action_flag',
+ 'old_version', 'new_version', 'created')
+ list_filter = ('action_flag', 'repo', 'arch')
+ search_fields = ('pkgname',)
+ 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)
+admin.site.register(Update, UpdateAdmin)
# vim: set ts=4 sw=4 et: