mirror of
https://github.com/lemeow125/EquipmentTracker-Backend.git
synced 2024-11-17 06:09:26 +08:00
Allow empty strings to be specified in remarks and description fields
This commit is contained in:
parent
d915852632
commit
58793e210b
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class EquipmentLogSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
format="%m-%d-%Y %I:%M%p", read_only=True)
|
format="%m-%d-%Y %I:%M%p", read_only=True)
|
||||||
last_updated_by = serializers.SerializerMethodField()
|
last_updated_by = serializers.SerializerMethodField()
|
||||||
name = serializers.CharField()
|
name = serializers.CharField()
|
||||||
description = serializers.CharField(required=False)
|
description = serializers.CharField(required=False, allow_blank=True)
|
||||||
history = EquipmentHistoricalRecordField()
|
history = EquipmentHistoricalRecordField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
@ -98,7 +98,7 @@ class EquipmentInstanceSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
category = serializers.CharField(
|
category = serializers.CharField(
|
||||||
source='equipment.category', read_only=True)
|
source='equipment.category', read_only=True)
|
||||||
status = serializers.CharField()
|
status = serializers.CharField()
|
||||||
remarks = serializers.CharField(required=False)
|
remarks = serializers.CharField(required=False, allow_blank=True)
|
||||||
date_added = serializers.DateTimeField(
|
date_added = serializers.DateTimeField(
|
||||||
format="%m-%d-%Y %I:%M%p", read_only=True)
|
format="%m-%d-%Y %I:%M%p", read_only=True)
|
||||||
last_updated = serializers.DateTimeField(
|
last_updated = serializers.DateTimeField(
|
||||||
|
|
Loading…
Reference in a new issue