summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-07 20:11:52 +0100
committerDan McGee <dan@archlinux.org>2011-12-07 20:11:52 +0100
commitc2e84a787a4e0b66648f6b8a076a4d25e2289b4d (patch)
tree011e5ebf2e09e5f29b1c5fab6de776dc872f5f81 /main
parentb1c42e16ac0c49a574cfa154162353ac555ac342 (diff)
downloadarchweb-c2e84a787a4e0b66648f6b8a076a4d25e2289b4d.tar.gz
archweb-c2e84a787a4e0b66648f6b8a076a4d25e2289b4d.tar.xz
Various small admin touchups
* Don't capitalize things in verbose_name, Django does this automatically and uses title case * Add overrides for IP, URL, ISO, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/admin.py b/main/admin.py
index e5da9fb..783d07e 100644
--- a/main/admin.py
+++ b/main/admin.py
@@ -24,7 +24,8 @@ class PackageAdmin(admin.ModelAdmin):
list_display = ('pkgname', 'full_version', 'repo', 'arch', 'packager',
'last_update', 'build_date')
list_filter = ('repo', 'arch')
- search_fields = ('pkgname',)
+ search_fields = ('pkgname', 'pkgbase', 'pkgdesc')
+ date_hierarchy = 'build_date'
class TodolistAdmin(admin.ModelAdmin):
list_display = ('name', 'date_added', 'creator', 'description')