Music-Controller-Web-App-Tutorial icon indicating copy to clipboard operation
Music-Controller-Web-App-Tutorial copied to clipboard

class Room has no objects member

Open Nuvaran opened this issue 4 years ago • 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", }

Nuvaran avatar Nov 15 '20 15:11 Nuvaran

check if the migration is correct

yakimenko73 avatar Nov 27 '20 16:11 yakimenko73

How did this get resolved? @techwithtim help needed

PradHolla avatar Dec 01 '20 13:12 PradHolla

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

Gligzz avatar Dec 01 '20 18:12 Gligzz

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

PradHolla avatar Dec 18 '20 13:12 PradHolla