mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-30 08:27:00 -05:00
feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
API serializers for the ride ranking system.
|
||||
"""
|
||||
|
||||
from rest_framework import serializers
|
||||
from drf_spectacular.utils import (
|
||||
extend_schema_serializer,
|
||||
extend_schema_field,
|
||||
OpenApiExample,
|
||||
extend_schema_field,
|
||||
extend_schema_serializer,
|
||||
)
|
||||
from apps.rides.models import RideRanking, RankingSnapshot
|
||||
from rest_framework import serializers
|
||||
|
||||
from apps.rides.models import RankingSnapshot, RideRanking
|
||||
|
||||
|
||||
@extend_schema_serializer(
|
||||
@@ -179,6 +180,7 @@ class RideRankingDetailSerializer(serializers.ModelSerializer):
|
||||
def get_head_to_head_comparisons(self, obj):
|
||||
"""Get top head-to-head comparisons."""
|
||||
from django.db.models import Q
|
||||
|
||||
from apps.rides.models import RidePairComparison
|
||||
|
||||
comparisons = (
|
||||
|
||||
Reference in New Issue
Block a user