Skip to content

Commit

Permalink
Correct a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
earshinov committed Sep 2, 2019
1 parent a5161b0 commit af5dd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit af5dd33

Please sign in to comment.