Hey,
As I implemented the nulls=last functionality in my Django template, the sort of null values at the end of the queryset was not persistent.
{% autosort object_list nulls=last %}
After investigating this issue, I realized that nulls=last kind of disappeared as the autosort tag retrieves all attributes of the tag.
The cause of this behavior is the reassignment of self.null_ordering which modifies the node of the template.
A PR is coming to solve this issue.
Hey,
As I implemented the nulls=last functionality in my Django template, the sort of null values at the end of the queryset was not persistent.
{% autosort object_list nulls=last %}After investigating this issue, I realized that
nulls=lastkind of disappeared as theautosorttag retrieves all attributes of the tag.The cause of this behavior is the reassignment of
self.null_orderingwhich modifies the node of the template.A PR is coming to solve this issue.