fix: added serializer_class to views needed
This commit is contained in:
@@ -154,3 +154,20 @@ class CreateContractSerializer(BaseContractSerializer):
|
||||
attached_files.save() # type: ignore
|
||||
|
||||
return contract
|
||||
|
||||
|
||||
###########################################################
|
||||
# Query Serializers
|
||||
###########################################################
|
||||
class RetrieveContractQuerySerializer(serializers.Serializer):
|
||||
folders = serializers.ListField(
|
||||
child=serializers.CharField(),
|
||||
required=False,
|
||||
help_text="Company Folders that contract should be allocated to."
|
||||
)
|
||||
status = serializers.ListField(
|
||||
child=serializers.CharField(),
|
||||
required=False,
|
||||
help_text="Contract Status which contract have related to current owner."
|
||||
)
|
||||
only_my_contracts = serializers.BooleanField(default=False)
|
||||
|
||||
Reference in New Issue
Block a user