techwithtim/Music-Controller-Web-App-Tutorial

class Room has no objects member

Nuvaran opened this issue · 4 comments

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",
}

check if the migration is correct

How did this get resolved?
@techwithtim help needed

Just check the last minute of the video. I spent an hour but this is not a mistake haha

Not specifically an error. Has to do something with pylint that's all.