Skip to content

querystring templatetag shadows built-in Django 5.1 templatetag with same name #976

@federicobond

Description

@federicobond

Since version 5.1, Django includes a built-in querystring templatetag. However, when loading the django_tables2 templatetag library, the built-in tag is shadowed. Since these templatetags are incompatible, it leads to some confusion, which will only grow as usage of the built-in querystring becomes more widespread.

So far, I have considered the following alternatives:

  1. Moving the querystring templatetag to a separate library (for example django_tables2_utils).
  2. Renaming the querystring templatetag to something else, like query_replace or querystring_replace
  3. A combination of (1) and (2)

Unfortunately, none of these alternatives is backward-compatible if the user has copied/modified the default table templates for their project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions