From c13af49a3702a778a9166d96702ce0a5f0df46b4 Mon Sep 17 00:00:00 2001 From: Jukka Ahonen Date: Fri, 15 Nov 2024 12:48:01 +0000 Subject: [PATCH] tasotarkistus: IndexNumberYearlySerializer changes to match the model definition --- leasing/serializers/rent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leasing/serializers/rent.py b/leasing/serializers/rent.py index 15d2a70b..8b9a7010 100644 --- a/leasing/serializers/rent.py +++ b/leasing/serializers/rent.py @@ -51,10 +51,10 @@ class Meta: class IndexNumberYearlySerializer(serializers.Serializer): id = serializers.IntegerField(required=False) - number = serializers.DecimalField(max_digits=10, decimal_places=2) + number = serializers.DecimalField(max_digits=8, decimal_places=1) year = serializers.IntegerField() region = serializers.CharField(max_length=255, required=False, allow_null=True) - comment = serializers.CharField(max_length=255, required=False, allow_null=True) + comment = serializers.CharField(required=False, allow_null=True) class Meta: model = IndexNumberYearly