forked from DGNum/gestioCOF
Corrections des typos
- Ligne vide - `lastname` -> `last_name` - `firstname` -> `first_name` - `spectacle__title` -> `attribution__spectacle__title`
This commit is contained in:
parent
b249d61c2d
commit
36cd623105
|
@ -219,9 +219,10 @@ class SpectacleReventeAdmin(admin.ModelAdmin):
|
||||||
list_display = ("spectacle", "seller", "date", "soldTo")
|
list_display = ("spectacle", "seller", "date", "soldTo")
|
||||||
raw_id_fields = ("attribution",)
|
raw_id_fields = ("attribution",)
|
||||||
readonly_fields = ("shotgun", "expiration_time")
|
readonly_fields = ("shotgun", "expiration_time")
|
||||||
search_fields = ("seller__user__username",
|
search_fields = ['attribution__spectacle__title',
|
||||||
"seller__user__firstname",
|
'seller__user__username',
|
||||||
"seller__user__lastname",)
|
'seller__user__first_name',
|
||||||
|
'seller__user__last_name']
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(CategorieSpectacle)
|
admin.site.register(CategorieSpectacle)
|
||||||
|
|
|
@ -228,7 +228,6 @@ class SpectacleRevente(models.Model):
|
||||||
answered_mail = models.ManyToManyField(Participant,
|
answered_mail = models.ManyToManyField(Participant,
|
||||||
related_name="wanted",
|
related_name="wanted",
|
||||||
blank=True)
|
blank=True)
|
||||||
|
|
||||||
seller = models.ForeignKey(Participant,
|
seller = models.ForeignKey(Participant,
|
||||||
related_name="original_shows",
|
related_name="original_shows",
|
||||||
verbose_name="Vendeur")
|
verbose_name="Vendeur")
|
||||||
|
|
Loading…
Reference in a new issue