Merge branch 'Aufinal/fix_bda_admin' into 'master'

fix recherche dans spectaclerevente



See merge request !95
This commit is contained in:
Martin Pepin 2016-10-11 15:01:57 +02:00
commit caadbc8efa
2 changed files with 4 additions and 5 deletions

View file

@ -219,10 +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 = ("spectacle__title", search_fields = ['attribution__spectacle__title',
"seller__user__username", 'seller__user__username',
"seller__user__firstname", 'seller__user__first_name',
"seller__user__lastname",) 'seller__user__last_name']
admin.site.register(CategorieSpectacle) admin.site.register(CategorieSpectacle)

View file

@ -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")