Skip to content

Commit

Permalink
fix code tag on f_query
Browse files Browse the repository at this point in the history
  • Loading branch information
gionniboy authored May 19, 2018
1 parent 616d526 commit 0c3e080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/f_query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ How to filter a queryset with criteria based on comparing their field values
==============================================================================

Django ORM makes it easy to filter based on fixed values.
To get all :code:`User` objects with :code:`first_name` starting with :code`'R'`,
To get all :code:`User` objects with :code:`first_name` starting with :code:`'R'`,
you can do :code:`User.objects.filter(name_startswith='R')`.

What if you want to compare the first_name and last name?
Expand Down

0 comments on commit 0c3e080

Please sign in to comment.