Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix changelist tutorial #53

Merged
merged 1 commit into from Apr 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/changelist.rst
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