from django.forms.widgets import TextInput


class YmapCoordFieldWidget(TextInput):
    attrs = None

    def __init__(self, attrs=None):

        default = {'class': 'ymap_field', 'style': 'display:none'}
        if attrs:
            default.update(attrs)
        super(YmapCoordFieldWidget, self).__init__(default)

    class Media:
        js = ('http://api-maps.yandex.ru/2.1/?lang=ru-RU', 'django_ymap/init.js')
from django.forms.widgets import TextInput


class YmapCoordFieldWidget(TextInput):
    attrs = None

    def __init__(self, attrs=None):

        default = {'class': 'ymap_field', 'style': 'display:none'}
        if attrs:
            default.update(attrs)
        super(YmapCoordFieldWidget, self).__init__(default)

    class Media:
        js = ('//api-maps.yandex.ru/2.1/?lang=ru-RU', 'django_ymap/init.js')

Update widgets.py