Skip to content

nulls=last is overriden in django template #25

@sandre35

Description

@sandre35

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions