from django.shortcuts import render
from riders.models import Rider
from clubs.models import Club



# Create your views here.

def dashboards(request):
    riders = Rider.objects.filter(is_active=True).count()
    reqs_plate = Rider.objects.filter(is_approwed = False).count()
    clubs = Club.objects.filter(is_active = True).count()
    context = {'riders': riders, 'reqs_plate': reqs_plate, 'clubs': clubs}
    return render(request, 'dashboards/dashboards.html', context)

3cb4307402b5539469c1f43d772e0d4a58586aee
<mask token>

<mask token>


def dashboards(request):
    riders = Rider.objects.filter(is_active=True).count()
    reqs_plate = Rider.objects.filter(is_approwed=False).count()
    clubs = Club.objects.filter(is_active=True).count()
    context = {'riders': riders, 'reqs_plate': reqs_plate, 'clubs': clubs}
    return render(request, 'dashboards/dashboards.html', context)

from django.shortcuts import render
from riders.models import Rider
from clubs.models import Club


def dashboards(request):
    riders = Rider.objects.filter(is_active=True).count()
    reqs_plate = Rider.objects.filter(is_approwed=False).count()
    clubs = Club.objects.filter(is_active=True).count()
    context = {'riders': riders, 'reqs_plate': reqs_plate, 'clubs': clubs}
    return render(request, 'dashboards/dashboards.html', context)

from django.shortcuts import render
from riders.models import Rider
from clubs.models import Club



# Create your views here.

def dashboards(request):
    riders = Rider.objects.filter(is_active=True).count()
    reqs_plate = Rider.objects.filter(is_approwed = False).count()
    clubs = Club.objects.filter(is_active = True).count()
    context = {'riders': riders, 'reqs_plate': reqs_plate, 'clubs': clubs}
    return render(request, 'dashboards/dashboards.html', context)
