From 4c11f54c0897cf82fb21cd8dfa7e33f3f7a75a48 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 7 Jan 2024 10:10:59 +0800 Subject: [PATCH] Allow null in remarks for equipment instance serializer --- equipment_tracker/equipments/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equipment_tracker/equipments/serializers.py b/equipment_tracker/equipments/serializers.py index f694335..3f96b05 100644 --- a/equipment_tracker/equipments/serializers.py +++ b/equipment_tracker/equipments/serializers.py @@ -150,7 +150,7 @@ class EquipmentInstanceSerializer(serializers.HyperlinkedModelSerializer): source='equipment.category', read_only=True) status = serializers.CharField() remarks = serializers.CharField( - max_length=512, required=False, allow_blank=True) + required=False, allow_null=True, allow_blank=True) date_added = serializers.DateTimeField( format="%m-%d-%Y %I:%M %p", read_only=True) last_updated = serializers.DateTimeField(