summaryrefslogtreecommitdiff
path: root/todolists/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-27 21:03:09 -0600
committerDan McGee <dan@archlinux.org>2012-12-28 09:19:19 -0600
commitf167d6e6e8ba2ca5e29f6a1a82b0e273ffec13ab (patch)
treeacc6c978aad054dd1831032aca189b026715eb5d /todolists/admin.py
parent8be27a5cafde87c439b19f64a7c215410c88484b (diff)
Add todolist admin for new model
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/admin.py')
-rw-r--r--todolists/admin.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/todolists/admin.py b/todolists/admin.py
new file mode 100644
index 00000000..181febb1
--- /dev/null
+++ b/todolists/admin.py
@@ -0,0 +1,14 @@
+from django.contrib import admin
+
+from .models import Todolist
+
+
+class TodolistAdmin(admin.ModelAdmin):
+ list_display = ('name', 'creator', 'created', 'description')
+ search_fields = ('name', 'description')
+ date_hierarchy = 'created'
+
+
+admin.site.register(Todolist, TodolistAdmin)
+
+# vim: set ts=4 sw=4 et: