summaryrefslogtreecommitdiff
path: root/papillon/polls/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'papillon/polls/admin.py')
-rw-r--r--papillon/polls/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/papillon/polls/admin.py b/papillon/polls/admin.py
index 2207c60..a5021b6 100644
--- a/papillon/polls/admin.py
+++ b/papillon/polls/admin.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2008 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2008-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
@@ -24,6 +24,7 @@ Settings for administration pages
from papillon.polls.models import Poll, Category
from django.contrib import admin
+
class PollAdmin(admin.ModelAdmin):
search_fields = ("name",)
list_display = ('name', 'category', 'modification_date', 'public', 'open')