summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
Diffstat (limited to 'todolists')
-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 0000000..181febb
--- /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: