fix affichage admin

This commit is contained in:
Ludovic Stephan 2016-07-23 22:21:30 +02:00
parent f44b3fc33c
commit 6793194adc
2 changed files with 8 additions and 5 deletions

View file

@ -214,7 +214,8 @@ class SpectacleReventeAdmin(admin.ModelAdmin):
return obj.attribution.participant
list_display = ("spectacle", "participant", "date", "sold")
readonly_fields = ("shotgun",)
raw_id_fields = ("attribution",)
readonly_fields = ("shotgun", "expiration_time")
list_filter = ("sold", )
search_fields = ("spectacle__title",
"participant__user__username",