diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-18 23:26:27 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-19 06:55:11 +0100 |
commit | eb97b0400b7323540896b98ac0eddbd7b4373241 (patch) | |
tree | 457861441b3e75e3d795bc8fbfea389ec1b04bfb /packages | |
parent | ed4eca37fc7680a7f88d213af68b740f046aad17 (diff) | |
download | archweb-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.py | 11 |
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: |