major changes, including tailwind v4

This commit is contained in:
pacnpal
2025-08-15 12:24:20 -04:00
parent f6c8e0e25c
commit da7c7e3381
261 changed files with 22783 additions and 10465 deletions

View File

@@ -3,16 +3,11 @@ from .models import Park
def get_base_park_queryset() -> QuerySet[Park]:
"""Get base queryset with all needed annotations and prefetches"""
from django.contrib.contenttypes.models import ContentType
park_type = ContentType.objects.get_for_model(Park)
return (
Park.objects.select_related('operator', 'property_owner')
Park.objects.select_related('operator', 'property_owner', 'location')
.prefetch_related(
'photos',
'rides',
'location',
'location__content_type'
'rides'
)
.annotate(
current_ride_count=Count('rides', distinct=True),