KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am doing exactly as the example states here is my method class FeedViewSet(viewsets.ModelViewSet): model = Feed serializer_class = FullFeedSerializer def get_queryset(self): user = request.user queryset = Feed.objects.get_nearby(user) return queryset when i execute it, it says request not defined .. which actually isn't. the example at the rest framework's site also haven't defined request. what am i doing wrong?
Tags (comma-separated)
Save Edits
Cancel