mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 12:11:13 -05:00
fix homepage counts
This commit is contained in:
@@ -27,8 +27,8 @@ class HomeView(TemplateView):
|
||||
# Get stats
|
||||
context['stats'] = {
|
||||
'total_parks': Park.objects.count(),
|
||||
'total_rides': Ride.objects.count(),
|
||||
'total_roller_coasters': Ride.objects.filter(category='RC').count(),
|
||||
'ride_count': Ride.objects.count(),
|
||||
'coaster_count': Ride.objects.filter(category='RC').count(),
|
||||
}
|
||||
|
||||
# Try to get trending items from cache first
|
||||
|
||||
Reference in New Issue
Block a user