mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-02 01:47:04 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -10,9 +10,7 @@ def get_base_park_queryset() -> QuerySet[Park]:
|
||||
.prefetch_related("photos", "rides")
|
||||
.annotate(
|
||||
current_ride_count=Count("rides", distinct=True),
|
||||
current_coaster_count=Count(
|
||||
"rides", filter=Q(rides__category="RC"), distinct=True
|
||||
),
|
||||
current_coaster_count=Count("rides", filter=Q(rides__category="RC"), distinct=True),
|
||||
)
|
||||
.order_by("name")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user