Add min and max to num membership months

This commit is contained in:
Tanner Collin 2020-02-26 01:45:26 +00:00
parent d4f5ab03cf
commit bcb34cf63e

View File

@ -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