Skip to content

Commit 4941e4f

Browse files
foldedpaperjieter
authored andcommitted
Reorder initial_sort_descending in column docstring (#708)
1 parent c92f976 commit 4941e4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_tables2/columns/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,6 @@ class Column:
218218
- If a `tuple` is passed, it must be either a (viewname, args) or (viewname, kwargs)
219219
tuple, which is also passed to ``~django.urls.reverse``.
220220
221-
initial_sort_descending (bool): If `True`, a column will sort in descending order
222-
on "first click" after table has been rendered. If `False`, column will follow
223-
default behavior, and sort ascending on "first click". Defaults to `False`.
224-
225221
Examples, assuming this model::
226222
227223
class Blog(models.Model):
@@ -244,6 +240,10 @@ class Blog(models.Model):
244240
user = tables.Column(linkify=("user_detail", [tables.A("user__pk")])) # (viewname, args)
245241
user = tables.Column(linkify=("user_detail", {"pk": tables.A("user__pk")})) # (viewname, kwargs)
246242
243+
initial_sort_descending (bool): If `True`, a column will sort in descending order
244+
on "first click" after table has been rendered. If `False`, column will follow
245+
default behavior, and sort ascending on "first click". Defaults to `False`.
246+
247247
.. [1] The provided callable object must not expect to receive any arguments.
248248
"""
249249

0 commit comments

Comments
 (0)