From f167d6e6e8ba2ca5e29f6a1a82b0e273ffec13ab Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 27 Dec 2012 21:03:09 -0600 Subject: Add todolist admin for new model Signed-off-by: Dan McGee --- todolists/admin.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 todolists/admin.py (limited to 'todolists') 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: -- cgit v1.2.3-24-g4f1b