mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Mark serializer fields as not required
This commit is contained in:
parent
63ed59ebcf
commit
3e2e9aaf9e
@ -248,6 +248,8 @@ class BuildCompleteSerializer(serializers.Serializer):
|
||||
accept_unallocated = serializers.BooleanField(
|
||||
label=_('Accept Unallocated'),
|
||||
help_text=_('Accept that stock items have not been fully allocated to this build order'),
|
||||
required=False,
|
||||
default=False,
|
||||
)
|
||||
|
||||
def validate_accept_unallocated(self, value):
|
||||
@ -262,6 +264,8 @@ class BuildCompleteSerializer(serializers.Serializer):
|
||||
accept_incomplete = serializers.BooleanField(
|
||||
label=_('Accept Incomplete'),
|
||||
help_text=_('Accept that the required number of build outputs have not been completed'),
|
||||
required=False,
|
||||
default=False,
|
||||
)
|
||||
|
||||
def validate_accept_incomplete(self, value):
|
||||
|
Loading…
Reference in New Issue
Block a user