forked from DGNum/gestioCOF
verbose names
This commit is contained in:
parent
de522a0035
commit
b6655047ed
2 changed files with 11 additions and 9 deletions
11
bda/admin.py
11
bda/admin.py
|
@ -216,16 +216,13 @@ class SpectacleReventeAdmin(admin.ModelAdmin):
|
|||
def spectacle(self, obj):
|
||||
return obj.attribution.spectacle
|
||||
|
||||
def participant(self, obj):
|
||||
return obj.attribution.participant
|
||||
|
||||
list_display = ("spectacle", "participant", "date", "soldTo")
|
||||
list_display = ("spectacle", "seller", "date", "soldTo")
|
||||
raw_id_fields = ("attribution",)
|
||||
readonly_fields = ("shotgun", "expiration_time")
|
||||
search_fields = ("spectacle__title",
|
||||
"participant__user__username",
|
||||
"participant__user__firstname",
|
||||
"participant__user__lastname",)
|
||||
"seller__user__username",
|
||||
"seller__user__firstname",
|
||||
"seller__user__lastname",)
|
||||
|
||||
|
||||
admin.site.register(CategorieSpectacle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue