diff options
author | Dan McGee <dan@archlinux.org> | 2013-11-27 17:08:42 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-11-27 17:08:42 -0500 |
commit | 954b61ee3a0760990f8e17d7d692f3cabd949f9f (patch) | |
tree | 0f9a69c0a6285d25624e62692bacf682abf47dc0 /main | |
parent | 429736f7e9fcdc92ea43f98e3a246b9e41e04707 (diff) |
Syntax cleanups to main admin
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/admin.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/admin.py b/main/admin.py index 6aff12e5..ec2b5bc8 100644 --- a/main/admin.py +++ b/main/admin.py @@ -1,23 +1,27 @@ from django.contrib import admin from main.models import Arch, Donor, Package, Repo + class DonorAdmin(admin.ModelAdmin): list_display = ('name', 'visible', 'created') list_filter = ('visible', 'created') search_fields = ('name',) exclude = ('created',) + class ArchAdmin(admin.ModelAdmin): list_display = ('name', 'agnostic', 'required_signoffs') list_filter = ('agnostic',) search_fields = ('name',) + class RepoAdmin(admin.ModelAdmin): list_display = ('name', 'testing', 'staging', 'bugs_project', 'bugs_category', 'svn_root') list_filter = ('testing', 'staging') search_fields = ('name',) + class PackageAdmin(admin.ModelAdmin): list_display = ('pkgname', 'full_version', 'repo', 'arch', 'packager', 'last_update', 'build_date') |