Skip to content

Commit

Permalink
tasotarkistus: IndexNumberYearlySerializer changes to match the model…
Browse files Browse the repository at this point in the history
… definition
  • Loading branch information
NC-jsAhonen committed Nov 21, 2024
1 parent b4ea9c5 commit c13af49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leasing/serializers/rent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c13af49

Please sign in to comment.