summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-18 16:26:27 -0600
committerDan McGee <dan@archlinux.org>2011-02-18 23:55:11 -0600
commiteb97b0400b7323540896b98ac0eddbd7b4373241 (patch)
tree457861441b3e75e3d795bc8fbfea389ec1b04bfb /packages
parented4eca37fc7680a7f88d213af68b740f046aad17 (diff)
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 00000000..3ecfdbb1
--- /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: