fixing dashbord page error

This commit is contained in:
y938 2024-03-31 20:38:25 +03:00
parent 25180167bf
commit 4e323fe8d7
2 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ def dashboard_view(request):
logs = ActivityLog.objects.all().order_by("-created_at")[:10] logs = ActivityLog.objects.all().order_by("-created_at")[:10]
gender_count = Student.get_gender_count() gender_count = Student.get_gender_count()
context = { context = {
"student_count": User.objects.get_student_count(), "student_count": User.get_student_count(),
"lecturer_count": User.objects.get_lecturer_count(), "lecturer_count": User.get_lecturer_count(),
"superuser_count": User.objects.get_superuser_count(), "superuser_count": User.get_superuser_count(),
"males_count": gender_count["M"], "males_count": gender_count["M"],
"females_count": gender_count["F"], "females_count": gender_count["F"],
"logs": logs, "logs": logs,

View File

@ -1,5 +1,5 @@
pytz==2022.7 # https://github.com/stub42/pytz pytz==2022.7 # https://github.com/stub42/pytz
Pillow==9.3.0 # https://github.com/python-pillow/Pillow Pillow==9.3.0 # https://github.com/python-pillow/Pillow
whitenoise==6.2.0 # https://github.com/evansd/whitenoise whitenoise==6.2.0 # https://github.com/evansd/whitenoise
# Django # Django