Remove useless local variable

This commit is contained in:
Ludovic Stephan 2019-06-17 21:12:03 +02:00
parent b11e35616c
commit ba5aa6da5f

View file

@ -117,8 +117,7 @@ class ParticipantAdmin(ReadOnlyMixin, admin.ModelAdmin):
inlines = [WithListingAttributionInline, WithoutListingAttributionInline]
def get_queryset(self, request):
qs = self.model.objects_paid.get_queryset()
return qs.annotate(
return self.model.objects_paid.get_queryset().annotate(
nb_places=Count("attributions"),
remain=Sum(
"attribution__spectacle__price", filter=Q(attribution__paid=False)