I am following a tutorial located here that uses Django Rest Framework, and I keep getting a weird error about a field.
I have the following model in my models.py<
models.py<
Simple specify many=True when creating a serializer from queryset, TaskSerializer(tasks) will work only with one instance of Task:
many=True
TaskSerializer(tasks)
Task
tasks = Task.objects.all() serializer = TaskSerializer(tasks, many=True)