bradtraversy / lead_manager_react_django

Full stack app with React, Redux & Django
592 stars 316 forks source link

'LeadViewSet' should either include a `queryset` attribute, or override the `get_queryset()` method. #1

Closed sagargithub399 closed 5 years ago

sagargithub399 commented 5 years ago

'LeadViewSet' should either include a queryset attribute, or override the get_queryset() method on below line in api.py file queryset : Lead.objects.all()

I am following Part1 video, while running server, I am getting above mentioned error. Any work around or any piece of code, which I have to double cross. I have already checked the code multiple time, every time seems to be dot to dot.

bradtraversy commented 5 years ago

It should be an "=". Like this...

queryset = Lead.objects.all()

sagargithub399 commented 5 years ago

It should be an "=". Like this...

queryset = Lead.objects.all()

How come I missed it, wasted 3 hours on this. Great catch. Thanks for quick response.

bradtraversy commented 5 years ago

No problem :)