Allow null in remarks for equipment instance serializer

This commit is contained in:
Keannu Bernasol 2024-01-07 10:10:59 +08:00
parent 7a3b477448
commit 4c11f54c08

View file

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