Skip to content

Commit

Permalink
Merge pull request #53 from jpic/changelist_docs
Browse files Browse the repository at this point in the history
Fix changelist tutorial
  • Loading branch information
gavinwahl committed Apr 4, 2018
2 parents 28d598b + 21cf37b commit 5dcdb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/changelist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ functionality that deals with operations on lists of model instances.
a model. This form adds a field to the model ``q`` for the search query.

.. attribute:: SEARCH_FIELDS

The list of fields that will be searched against.

.. attribute:: CASE_SENSITIVE
Expand All @@ -39,7 +39,7 @@ functionality that deals with operations on lists of model instances.
# my_app/forms.py
from django.contrib.auth.models import get_user_model
from betterforms.forms import SearchForm
from betterforms.changelist import SearchForm
class UserSearchForm(SearchForm):
SEARCH_FIELDS = ('username', 'email', 'name')
Expand Down

0 comments on commit 5dcdb1b

Please sign in to comment.