Closed sagargithub399 closed 5 years ago
It should be an "=". Like this...
queryset = Lead.objects.all()
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.
No problem :)
'LeadViewSet' should either include a
queryset
attribute, or override theget_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.