Remove useless local variable
This commit is contained in:
parent
b11e35616c
commit
ba5aa6da5f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue