summaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-29 09:31:16 -0500
committerDan McGee <dan@archlinux.org>2011-04-29 09:31:16 -0500
commit1ab065a982f489368b88ae67ec2997ed2777519a (patch)
tree9d925fbc6fbf2b8d7fa95b55bd69c12d7cdab084 /releng
parentb87a2c4864db79b29df1e2ea3ac3c3c2759f05fa (diff)
releng: enhance admin, remove errant print statement
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng')
-rw-r--r--releng/admin.py26
-rw-r--r--releng/views.py1
2 files changed, 19 insertions, 8 deletions
diff --git a/releng/admin.py b/releng/admin.py
index 10acaa98..3d3e7c0b 100644
--- a/releng/admin.py
+++ b/releng/admin.py
@@ -1,18 +1,30 @@
from django.contrib import admin
from .models import (Architecture, BootType, Bootloader, ClockChoice,
- Filesystem, HardwareType, InstallType, Iso, IsoType, Module, Source)
+ Filesystem, HardwareType, InstallType, Iso, IsoType, Module, Source,
+ Test)
+
+class IsoAdmin(admin.ModelAdmin):
+ list_display = ('name', 'created', 'active')
+ list_filter = ('active',)
+
+class TestAdmin(admin.ModelAdmin):
+ list_display = ('user_name', 'user_email', 'created', 'ip_address', 'iso', 'success')
+ list_filter = ('success', 'iso')
+
-admin.site.register(Iso)
admin.site.register(Architecture)
-admin.site.register(IsoType)
admin.site.register(BootType)
-admin.site.register(HardwareType)
-admin.site.register(InstallType)
-admin.site.register(Source)
+admin.site.register(Bootloader)
admin.site.register(ClockChoice)
admin.site.register(Filesystem)
+admin.site.register(HardwareType)
+admin.site.register(InstallType)
+admin.site.register(IsoType)
admin.site.register(Module)
-admin.site.register(Bootloader)
+admin.site.register(Source)
+
+admin.site.register(Iso, IsoAdmin)
+admin.site.register(Test, TestAdmin)
# vim: set ts=4 sw=4 et:
diff --git a/releng/views.py b/releng/views.py
index 5cffb2f5..973cf330 100644
--- a/releng/views.py
+++ b/releng/views.py
@@ -96,7 +96,6 @@ def test_results_overview(request):
for model in [ Filesystem, Module ]:
all_options.append(calculate_option_overview(model, True))
- print all_options
context = {
'options': all_options,
'iso_url': settings.ISO_LIST_URL,