class Room has no objects member
Nuvaran opened this issue · 4 comments
Nuvaran commented
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",
}
yakimenko73 commented
check if the migration is correct
PradHolla commented
How did this get resolved?
@techwithtim help needed
Gligzz commented
Just check the last minute of the video. I spent an hour but this is not a mistake haha
PradHolla commented
Not specifically an error. Has to do something with pylint that's all.