'Injects OpenLayers JavaScript into the admin.'

def _media(self):

    media = super(GeoModelAdmin, self)._media()
    media.add_js([self.openlayers_url])
    media.add_js(self.extra_js)
    return media
