mirror of
https://github.com/django/django.git
synced 2025-06-03 18:49:12 +00:00
[5.1.x] Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt.
Backport of 30e0a43937e685083fa1210c3594678a3b813806 from main.
This commit is contained in:
parent
8cb8820fbf
commit
71558701df
@ -207,7 +207,7 @@ Include a form in ``template.html`` that will ``POST`` to this view:
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<label for="timezone">Time zone:</label>
|
<label for="timezone">Time zone:</label>
|
||||||
<select name="timezone">
|
<select name="timezone">
|
||||||
{% for city, tz in timezones %}
|
{% for city, tz in timezones.items %}
|
||||||
<option value="{{ tz }}"{% if tz == TIME_ZONE %} selected{% endif %}>{{ city }}</option>
|
<option value="{{ tz }}"{% if tz == TIME_ZONE %} selected{% endif %}>{{ city }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user