Merge branch 'aureplop/fix-attributions-admin' into 'master'

Fix attribution inlines of participant in admin

See merge request !255
This commit is contained in:
Martin Pepin 2017-09-25 18:38:05 +02:00
commit 22413d861c

View file

@ -56,7 +56,7 @@ class AttributionInline(admin.TabularInline):
def get_queryset(self, request):
qs = super().get_queryset(request)
if self.listing is not None:
qs.filter(spectacle__listing=self.listing)
qs = qs.filter(spectacle__listing=self.listing)
return qs