Utilize {% querystring %} template tag #13638
Labels
enhancement
Adding or requesting a new feature.
good first issue
Opportunity for newcoming contributors.
hacktoberfest
This is suitable for Hacktoberfest. Don’t try to spam.
help wanted
Extra attention is needed.
Describe the problem
The querystring handling pagination currently has quite complex logic in
weblate.trans.forms.SearchForm
. Most likely it can be fully eliminated by using the{% querystring %}
template tag introduced in Django 5.1 (required by Weblate since #13636) see https://docs.djangoproject.com/en/5.1/releases/5.1/#querystring-template-tag.Describe the solution you would like
I believe using
{% querystring %}
in the template can replaceitems
,urlencode
andreset_offset
methods in the form.Describe alternatives you have considered
No response
Screenshots
No response
Additional context
weblate/weblate/trans/forms.py
Lines 809 to 852 in b4c476f
The text was updated successfully, but these errors were encountered: