I made a new list view in my Django REST Framework app:
class ColumnView(ListCreateAPIView):
queryset = Column.objects.all()
serializer_class = ColumnSerializer
permission_classes = [IsAuthenticatedOrReadOnly]
def perform_create(self, serializer):
serializer.save(user=self.request.user)
When I try to access it, I get the following error:
FieldError at /my/new/endpoint
Cannot resolve keyword 'created' into field. Choices are: _order, fields, from, my, model
There's no created field anywhere in sight - not in the ColumnSerializer, not in the Column Django model, nowhere. The stacktrace is really opaque, too - my app doesn't appear anywhere in it. What's going on?