Commit a3db7415 authored by Jamesie Pic's avatar Jamesie Pic

Proposal admin usability

parent c7e57b30
......@@ -12,16 +12,10 @@ class DossierAdmin(admin.ModelAdmin):
class ProposalAdmin(admin.ModelAdmin):
list_display = (
'id',
'fingerprint',
'reference',
'dossier_reference',
'title',
'datetime',
'kind',
'total_abstain',
'total_against',
'total_for')
'kind')
search_fields = ('reference', 'dossier__reference', 'title', 'fingerprint')
def dossier_reference(self, obj):
......
import autocomplete_light.shortcuts as al
from .models import Proposal
al.register(Proposal, search_fields=['title'])
......@@ -16,7 +16,6 @@ setup(
'py-dateutil',
'pytz',
'ijson',
'django-autocomplete-light',
],
entry_points={
'console_scripts': [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment