Jelajahi Sumber

Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt.

YQ 2 minggu lalu
induk
melakukan
30e0a43937
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      docs/topics/i18n/timezones.txt

+ 1 - 1
docs/topics/i18n/timezones.txt

@@ -206,7 +206,7 @@ Include a form in ``template.html`` that will ``POST`` to this view:
         {% csrf_token %}
         <label for="timezone">Time zone:</label>
         <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>
             {% endfor %}
         </select>