Skip to content

Commit 72c16a8

Browse files
committed
Conservative natural language edits for readability.
Signed-off-by: Andrew D. Ball <anball@gmail.com>
1 parent ec3bc8c commit 72c16a8

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Django-filter is a reusable Django application for allowing users to filter
2-
queryset dynamically. It requires Python 2.4 or higher. For usage and
2+
querysets dynamically. It requires Python 2.4 or higher. For usage and
33
installation instructions consult the docs directory.
44

55
Django-filter can be used for generating interfaces similar to the Django
66
admin's ``list_filter`` interface. It has an API very similar to Django's
7-
``ModelForms``. For example if you had a Product model you could have a
7+
``ModelForms``. For example, if you had a Product model you could have a
88
filterset for it with the code::
99

1010
import django_filters

docs/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ django-filter
44

55
Django-filter is a generic, reusable application to alleviate some of the more
66
mundane bits of view code. Specifically allowing the users to filter down a
7-
queryset based on a models fields, and displaying the form to let them do this.
7+
queryset based on a model's fields and displaying the form to let them do this.
88

99
Contents:
1010

docs/ref/filters.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Similar to a ``ChoiceFilter`` except it works with related models, used for
5454
``ModelMultipleChoiceFilter``
5555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5656

57-
Similar to a ``MultipleChoiceFilter`` except it works with related models, uesd
57+
Similar to a ``MultipleChoiceFilter`` except it works with related models, used
5858
for ``ManyToManyField`` by default.
5959

6060
``NumberFilter``
@@ -77,7 +77,7 @@ selections for working with date fields.
7777
``AllValuesFilter``
7878
~~~~~~~~~~~~~~~~~~~
7979

80-
This is a ``ChoiceFilter`` who's choices are the current values in the
80+
This is a ``ChoiceFilter`` whose choices are the current values in the
8181
database. So if in the DB for the given field you have values of 5, 7, and 9
8282
each of those is present as an option. This is similar to the default behavior
8383
of the admin.
@@ -102,7 +102,7 @@ argument.
102102

103103
The django.form Widget class which will represent the ``Filter``. In addition
104104
to the widgets that are included with Django that you can use there are
105-
additional ones that django-filte provides which may be useful:
105+
additional ones that django-filter provides which may be useful:
106106
* ``django_filters.widgets.LinkWidget`` -- this displays the options in a
107107
mannner similar to the way the Django Admin does, as a series of links.
108108
The link for the selected option will have ``class="selected"``.
@@ -117,11 +117,11 @@ recieves a ``QuerySet`` and the value to filter on and should return a
117117
``lookup_type``
118118
~~~~~~~~~~~~~~~
119119

120-
The type of lookup that should be preformed using the Django ORM. All the
120+
The type of lookup that should be performed using the Django ORM. All the
121121
normal options are allowed, and should be provided as a string. You can also
122-
provide either ``None`` or a ``list`` or ``tuple``, if ``None`` is provided
123-
then user can select the lookup_type from all the ones available in the Django
124-
ORM, and if a ``list`` or ``tuple`` is provided the user can select from those
122+
provide either ``None`` or a ``list`` or a ``tuple``. If ``None`` is provided,
123+
then the user can select the lookup type from all the ones available in the Django
124+
ORM. If a ``list`` or ``tuple`` is provided, then the user can select from those
125125
options.
126126

127127
``**kwargs``

docs/ref/widgets.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ arguments.
99

1010
This widget renders each option as a link, intead of an actual <input>. It has
1111
one method that you can overide for additional customizability.
12-
``option_string()`` should return a string with 3 Python keyword arugment
12+
``option_string()`` should return a string with 3 Python keyword argument
1313
placeholders::
1414

1515
1. ``attrs``: This is a string with all the attributes that will be on the

docs/usage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ the resulting queryset.
8888
You can also allow the user to control ordering, this is done by providing the
8989
``order_by`` argument in the Filter's Meta class. ``order_by`` can be either a
9090
``list`` or ``tuple`` of field names, in which case those are the options, or
91-
it can be a ``bool`` which, if True, indicates that all fields that have
91+
it can be a ``bool`` which, if True, indicates that all fields that
9292
the user can filter on can also be sorted on.
9393

9494
The inner ``Meta`` class also takes an optional ``form`` argument. This is a

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
setup(
88
name='django-filter',
99
version='0.5.3',
10-
description='Django-filter is a reusable Django application for allowing users to filter queryset dynamically.',
10+
description='Django-filter is a reusable Django application for allowing users to filter querysets dynamically.',
1111
long_description=readme,
1212
author='Alex Gaynor',
1313
author_email='alex.gaynor@gmail.com',

0 commit comments

Comments
 (0)