summaryrefslogtreecommitdiff
path: root/main/admin.py
diff options
context:
space:
mode:
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 923b962e..5dffb431 100644
--- a/main/admin.py
+++ b/main/admin.py
@@ -6,6 +6,11 @@ from main.models import Arch, Donor, Package, Repo, UserProfile
class DonorAdmin(admin.ModelAdmin):
search_fields = ('name',)
+class ArchAdmin(admin.ModelAdmin):
+ list_display = ('name', 'agnostic')
+ list_filter = ('agnostic',)
+ search_fields = ('name',)
+
class RepoAdmin(admin.ModelAdmin):
list_display = ('name', 'testing', 'bugs_project', 'svn_root')
list_filter = ('testing',)
@@ -30,7 +35,7 @@ admin.site.register(User, UserProfileAdmin)
admin.site.register(Donor, DonorAdmin)
admin.site.register(Package, PackageAdmin)
-admin.site.register(Arch)
+admin.site.register(Arch, ArchAdmin)
admin.site.register(Repo, RepoAdmin)
# vim: set ts=4 sw=4 et: