From bcb34cf63e2c529c9e3a47ddaa5baa8f03f998b5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 26 Feb 2020 01:45:26 +0000 Subject: [PATCH] Add min and max to num membership months --- apiserver/apiserver/api/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apiserver/apiserver/api/serializers.py b/apiserver/apiserver/api/serializers.py index ce44c01..a04f924 100644 --- a/apiserver/apiserver/api/serializers.py +++ b/apiserver/apiserver/api/serializers.py @@ -45,6 +45,7 @@ class TransactionSerializer(serializers.ModelSerializer): 'Unmatched Purchase', 'User Flagged', ], allow_null=True, required=False) + number_of_membership_months = serializers.IntegerField(max_value=36, min_value=-36) class Meta: model = models.Transaction