Mercurial > public > sg101
diff gpp/polls/admin.py @ 439:1f139de929c4
Fixing #216; added anti-ballot stuffing feature to the polls application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 May 2011 19:55:48 +0000 |
parents | dbd703f7d63a |
children |
line wrap: on
line diff
--- a/gpp/polls/admin.py Wed May 18 03:04:25 2011 +0000 +++ b/gpp/polls/admin.py Sat May 21 19:55:48 2011 +0000 @@ -10,13 +10,14 @@ class ChoiceInline(admin.TabularInline): model = Choice extra = 3 + raw_id_fields = ['voters'] class PollAdmin(admin.ModelAdmin): - list_display = ('question', 'start_date', 'end_date', 'is_enabled') - inlines = (ChoiceInline, ) - list_filter = ('start_date', 'end_date') - search_fields = ('question', ) + list_display = ['question', 'start_date', 'end_date', 'is_enabled'] + inlines = [ChoiceInline] + list_filter = ['start_date', 'end_date'] + search_fields = ['question'] date_hierarchy = 'start_date'