diff options
Diffstat (limited to 'django/contrib/gis/admin/widgets.py')
| -rw-r--r-- | django/contrib/gis/admin/widgets.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/django/contrib/gis/admin/widgets.py b/django/contrib/gis/admin/widgets.py index be26261b54..49de09511d 100644 --- a/django/contrib/gis/admin/widgets.py +++ b/django/contrib/gis/admin/widgets.py @@ -1,15 +1,16 @@ from django.conf import settings -from django.contrib.gis.gdal import OGRException -from django.contrib.gis.geos import GEOSGeometry, GEOSException from django.forms.widgets import Textarea from django.template import loader, Context +from django.templatetags.static import static from django.utils import translation +from django.contrib.gis.gdal import OGRException +from django.contrib.gis.geos import GEOSGeometry, GEOSException + # Creating a template context that contains Django settings # values needed by admin map templates. -geo_context = Context({'ADMIN_MEDIA_PREFIX' : settings.ADMIN_MEDIA_PREFIX, - 'LANGUAGE_BIDI' : translation.get_language_bidi(), - }) +geo_context = Context({'ADMIN_MEDIA_PREFIX' : static('admin/'), + 'LANGUAGE_BIDI' : translation.get_language_bidi()}) class OpenLayersWidget(Textarea): """ |
