Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #920 from akatsoulas/voting-admin
Browse files Browse the repository at this point in the history
Add list display and filters in admin for the voting app.
  • Loading branch information
akatsoulas committed Feb 3, 2015
2 parents 63256f8 + 28bf721 commit 775c2f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remo/voting/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class PollAdmin(ExportMixin, admin.ModelAdmin):
class VoteAdmin(ExportMixin, admin.ModelAdmin):
"""Vote Admin"""
model = Vote
search_fields = ['user__first_name', 'user__last_name', 'poll__name']
list_display = ['user', 'poll', 'date_voted']


admin.site.register(Vote, VoteAdmin)
Expand Down

0 comments on commit 775c2f6

Please sign in to comment.