From 4941e4f0197a0de0a0931a7e940e6feeac1ce166 Mon Sep 17 00:00:00 2001 From: foldedpaper Date: Mon, 28 Oct 2019 11:01:12 -0500 Subject: [PATCH] Reorder initial_sort_descending in column docstring (#708) --- django_tables2/columns/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/django_tables2/columns/base.py b/django_tables2/columns/base.py index 6ec3e5b7..977c73a4 100644 --- a/django_tables2/columns/base.py +++ b/django_tables2/columns/base.py @@ -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): @@ -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. """