update
This commit is contained in:
@@ -47,6 +47,14 @@ class TaskCreateSerializer(serializers.ModelSerializer):
|
||||
'assignees',
|
||||
]
|
||||
|
||||
extra_kwargs = {
|
||||
'labels' : {'required' : False},
|
||||
'description' : {'required' : False},
|
||||
'from_date' : {'required' : False},
|
||||
'to_date' : {'required' : False},
|
||||
|
||||
}
|
||||
|
||||
def create(self, validated_data):
|
||||
validated_data['created_by'] = self.context['request'].user
|
||||
return super().create(validated_data)
|
||||
|
||||
Reference in New Issue
Block a user