From 38b7a1864eb881a1f68a7ad9d749290712becdce Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 05:08:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20QR=20=D0=BA=D0=BE=D0=B4=D1=8B=20=D0=B8=20=D1=83?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=BD=D0=B8=D0=BA=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/business/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/business/serializers.py b/src/business/serializers.py index c22c13b..c84f901 100644 --- a/src/business/serializers.py +++ b/src/business/serializers.py @@ -9,7 +9,7 @@ from .repositories import QRCodeUsingRepository class ListUsingQRCodeSerializer(serializers.Serializer): date = serializers.SerializerMethodField(method_name='get_timestamp', read_only=True) - scansCount = serializers.SerializerMethodField(method_name='get_scans_count', read_only=True) + scans_count = serializers.SerializerMethodField(method_name='get_scans_count', read_only=True) def get_timestamp(self, obj): return datetime.combine(obj['date'], time=time(), tzinfo=timezone(settings.TIME_ZONE)).timestamp() @@ -23,7 +23,6 @@ class DetailedUsingQRCodeSerializer(serializers.ModelSerializer): timestamp = serializers.SerializerMethodField(method_name='get_timestamp', read_only=True) user = serializers.StringRelatedField(source='client', read_only=True) - discountPercent = serializers.IntegerField(source='discount') class Meta: model = QRCodeUsing