diff options
author | Dan McGee <dan@archlinux.org> | 2013-11-27 23:08:42 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-11-27 23:08:42 +0100 |
commit | 954b61ee3a0760990f8e17d7d692f3cabd949f9f (patch) | |
tree | 0f9a69c0a6285d25624e62692bacf682abf47dc0 /main | |
parent | 429736f7e9fcdc92ea43f98e3a246b9e41e04707 (diff) | |
download | archweb-954b61ee3a0760990f8e17d7d692f3cabd949f9f.tar.gz archweb-954b61ee3a0760990f8e17d7d692f3cabd949f9f.tar.xz |
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 6aff12e..ec2b5bc 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') |