From 33a500ead4cb80f89cad1aa93ef63740a1704a4a Mon Sep 17 00:00:00 2001 From: Evgeny Arshinov Date: Mon, 2 Sep 2019 21:28:44 +0300 Subject: [PATCH] Correct a comment --- django_filters/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_filters/filters.py b/django_filters/filters.py index 72b9261b9..6c11a0aba 100644 --- a/django_filters/filters.py +++ b/django_filters/filters.py @@ -848,7 +848,7 @@ def normalize_ordering_descriptor(cls, descriptor): return descriptor if isinstance(descriptor, collections.Sequence): - # A sequence of model field names + # A sequence of model field names or Django expressions return { "exprs": [F(field) if isinstance(field, str) else field for field in descriptor] }