summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-18 23:26:27 +0100
committerDan McGee <dan@archlinux.org>2011-02-19 06:55:11 +0100
commiteb97b0400b7323540896b98ac0eddbd7b4373241 (patch)
tree457861441b3e75e3d795bc8fbfea389ec1b04bfb /packages
parented4eca37fc7680a7f88d213af68b740f046aad17 (diff)
downloadarchweb-eb97b0400b7323540896b98ac0eddbd7b4373241.tar.gz
archweb-eb97b0400b7323540896b98ac0eddbd7b4373241.tar.xz
Add a PackageRelation admin
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/admin.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/admin.py b/packages/admin.py
new file mode 100644
index 0000000..3ecfdbb
--- /dev/null
+++ b/packages/admin.py
@@ -0,0 +1,11 @@
+from django.contrib import admin
+
+from .models import PackageRelation
+
+class PackageRelationAdmin(admin.ModelAdmin):
+ list_display = ('user', 'pkgbase', 'type')
+ list_filter = ('type', 'user')
+
+admin.site.register(PackageRelation, PackageRelationAdmin)
+
+# vim: set ts=4 sw=4 et: