Skip to content

Commit 272779b

Browse files
committed
fix available lots calculate
1 parent a1a712b commit 272779b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/pay_parking/parking/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_queryset(self):
4444
start__lte=models.functions.Now()
4545
).filter(
4646
end__gte=models.functions.Now()
47-
).annotate(
47+
).values('parking').annotate(
4848
count=models.Count('id')
4949
).values('count')
5050
), 0

0 commit comments

Comments
 (0)