def create(self, validated_data): taskList = TaskList(**validated_data) taskList.save() return taskList
def create(self, validated_data): # {'name': 'new category 4'} # name='new category 4' category = TaskList(**validated_data) category.save() return category
def create(self, validated_data): list = TaskList(**validated_data) list.save() return list
def create(self, validated_data): t_tl = TaskList(**validated_data) t_tl.save()
def create(self, validated_data): task_detail = TaskList(**validated_data) task_detail.save() return task_detail