summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-23 19:01:21 +0100
committerDan McGee <dan@archlinux.org>2011-03-23 19:01:21 +0100
commit5f7fbcb7133b1c04824d1aa4ded7af8feef13c2e (patch)
tree7668a6b2a56958877d6b500a6eacaab4dcc97797 /main
parenta52ddb5c48dd2cb7856779f64611679aca7d660d (diff)
downloadarchweb-5f7fbcb7133b1c04824d1aa4ded7af8feef13c2e.tar.gz
archweb-5f7fbcb7133b1c04824d1aa4ded7af8feef13c2e.tar.xz
Add basic todo list admin site
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/admin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/admin.py b/main/admin.py
index a2c5b2a..45bc5ab 100644
--- a/main/admin.py
+++ b/main/admin.py
@@ -1,7 +1,7 @@
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
-from main.models import Arch, Donor, Package, Repo, UserProfile
+from main.models import Arch, Donor, Package, Repo, Todolist, UserProfile
class DonorAdmin(admin.ModelAdmin):
list_display = ('name', 'visible')
@@ -23,6 +23,10 @@ class PackageAdmin(admin.ModelAdmin):
list_filter = ('repo', 'arch')
search_fields = ('pkgname',)
+class TodolistAdmin(admin.ModelAdmin):
+ list_display = ('name', 'date_added', 'creator', 'description')
+ search_fields = ('name', 'description')
+
admin.site.unregister(User)
class UserProfileInline(admin.StackedInline):
model = UserProfile
@@ -40,4 +44,6 @@ admin.site.register(Package, PackageAdmin)
admin.site.register(Arch, ArchAdmin)
admin.site.register(Repo, RepoAdmin)
+admin.site.register(Todolist, TodolistAdmin)
+
# vim: set ts=4 sw=4 et: