Skip to content

class Room has no objects member #3

Description

@Nuvaran

Hii, can someone help me out I an error from models.py views.py with class Room.
It says that the class Room has no objects member

class RoomView(generics.CreateAPIView):
queryset = Room.objects.all()
serializer_class = RoomSerializer

Error : {
"code": "no-member",
"message": "Class 'Room' has no 'objects' member",
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions