mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19:26 +08:00
Allow null in remarks for equipment instance serializer
This commit is contained in:
parent
7a3b477448
commit
4c11f54c08
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class EquipmentInstanceSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
source='equipment.category', read_only=True)
|
source='equipment.category', read_only=True)
|
||||||
status = serializers.CharField()
|
status = serializers.CharField()
|
||||||
remarks = 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(
|
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