Skip to content

Commit

Permalink
fix tutorial get_queryset implementation
Browse files Browse the repository at this point in the history
it should return queryset not self.q
  • Loading branch information
Visgean committed Feb 5, 2016
1 parent 282bc84 commit 5d454c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ widget for in a form. If a users types an "f" it would propose "Fiji",
if self.q:
qs = qs.filter(name__istartswith=self.q)
return self.q
return qs
.. note:: For more complex filtering, refer to official documentation for
the :django:label:`queryset-api`.
Expand Down

0 comments on commit 5d454c6

Please sign in to comment.