django / django-asv

Benchmarks for Django using asv
MIT License
40 stars 12 forks source link

Fixed time_template_render benchmark failing for Django>=4.0 #2

Closed deepakdinesh1123 closed 2 years ago

deepakdinesh1123 commented 2 years ago

The template tags {% ifequal %} and {% ifnotequal %} have been deprecated in Django 4.0, so I modified templates/permalink.html and replaced {% ifnotequal val1 val2 %} with {% if val1 != val2 %}. I also created a new file templates/permalink_django_lte_40.html that uses {% ifnotequal %}

smithdc1 commented 2 years ago

Thanks @deepakdinesh1123. LGTM!