summaryrefslogtreecommitdiff
path: root/main/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-10 20:50:29 -0600
committerDan McGee <dan@archlinux.org>2010-03-10 20:50:29 -0600
commit21fe1460d4a9d9fca913b3bae50f051a78796ffb (patch)
tree0e053f92d7c3a9c30041673d98148d48caf71287 /main/admin.py
parent73baf1b967f5d224842b880d33e636114c9995d9 (diff)
Make the new 'testing' flag on repo a bit clearerrelease_2010-03-10
Since at least two repositories currently fall under this flag, add some help text and visibility to this column. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/admin.py')
-rw-r--r--main/admin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/admin.py b/main/admin.py
index b42c891f..3ab6d5d4 100644
--- a/main/admin.py
+++ b/main/admin.py
@@ -68,6 +68,11 @@ class MirrorAdmin(admin.ModelAdmin):
MirrorRsyncInlineAdmin,
]
+class RepoAdmin(admin.ModelAdmin):
+ list_display = ('name', 'testing')
+ list_filter = ('testing',)
+ search_fields = ('name',)
+
class PackageAdmin(admin.ModelAdmin):
list_display = ('pkgname', 'repo', 'arch', 'maintainer')
list_filter = ('repo', 'arch', 'maintainer')
@@ -99,7 +104,7 @@ admin.site.register(MirrorProtocol)
admin.site.register(Package, PackageAdmin)
admin.site.register(Press, PressAdmin)
admin.site.register(Arch)
-admin.site.register(Repo)
+admin.site.register(Repo, RepoAdmin)
admin.site.register(ExternalProject)
# vim: set ts=4 sw=4 et: