Skip to content

Commit

Permalink
Reorder initial_sort_descending in column docstring (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
foldedpaper authored and jieter committed Oct 28, 2019
1 parent c92f976 commit 4941e4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django_tables2/columns/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ class Column:
- If a `tuple` is passed, it must be either a (viewname, args) or (viewname, kwargs)
tuple, which is also passed to ``~django.urls.reverse``.
initial_sort_descending (bool): If `True`, a column will sort in descending order
on "first click" after table has been rendered. If `False`, column will follow
default behavior, and sort ascending on "first click". Defaults to `False`.
Examples, assuming this model::
class Blog(models.Model):
Expand All @@ -244,6 +240,10 @@ class Blog(models.Model):
user = tables.Column(linkify=("user_detail", [tables.A("user__pk")])) # (viewname, args)
user = tables.Column(linkify=("user_detail", {"pk": tables.A("user__pk")})) # (viewname, kwargs)
initial_sort_descending (bool): If `True`, a column will sort in descending order
on "first click" after table has been rendered. If `False`, column will follow
default behavior, and sort ascending on "first click". Defaults to `False`.
.. [1] The provided callable object must not expect to receive any arguments.
"""

Expand Down

0 comments on commit 4941e4f

Please sign in to comment.