Skip to content

Commit

Permalink
Small improvements to documentation (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 committed Sep 29, 2020
1 parent 340cf7a commit 86bcd42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/guide/migration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Migration Guide
Enabling warnings
-----------------

To view deprecations, you may need to enable warnings within python. This
To view deprecations, you may need to enable warnings within Python. This
can be achieved with either the ``-W`` `flag`__, or with ``PYTHONWARNINGS``
`environment variable`__. For example, you could run your test suite like so:

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/rest_framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ To enable filtering with a ``FilterSet``, add it to the ``filterset_class`` para
Using the ``filterset_fields`` shortcut
---------------------------------------

You may bypass creating a ``FilterSet`` by instead adding ``filterset_fields`` to your view class. This is equivalent to creating a FilterSet with just :ref:`Meta.fields <fields>`.
You may bypass creating a ``FilterSet`` by instead adding ``filterset_fields`` to your view class. This is equivalent to creating a ``FilterSet`` with just :ref:`Meta.fields <fields>`.


.. code-block:: python
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/tips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tips and Solutions
Common problems for declared filters
------------------------------------

Below are some of the common problem that occur when declaring filters. It is
Below are some of the common problems that occur when declaring filters. It is
recommended that you read this as it provides a more complete understanding of
how filters work.

Expand All @@ -15,7 +15,7 @@ Filter ``field_name`` and ``lookup_expr`` not configured

While ``field_name`` and ``lookup_expr`` are optional, it is recommended that you specify
them. By default, if ``field_name`` is not specified, the filter's name on the
filterset class will be used. Additionally, ``lookup_expr`` defaults to
``FilterSet`` class will be used. Additionally, ``lookup_expr`` defaults to
``exact``. The following is an example of a misconfigured price filter:

.. code-block:: python
Expand Down

0 comments on commit 86bcd42

Please sign in to comment.