1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.

This commit is contained in:
Tim Graham
2016-01-27 09:25:49 -05:00
parent 5aa5328675
commit 19d1cb1451
4 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
<style type="text/css">{% block map_css %}{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %}
{% load i18n l10n static %}
<style type="text/css">{% block map_css %}{% get_current_language_bidi as LANGUAGE_BIDI %}
#{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
#{{ id }}_map .aligned label { float: inherit; }
#{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
@@ -25,7 +26,7 @@
id: '{{ id }}',
map_id: '{{ id }}_map',
map_options: map_options,
map_srid: {{ map_srid }},
map_srid: {{ map_srid|unlocalize }},
name: '{{ name }}'
};
{% endblock %}