Ticket #16790: 16790.1.diff

File 16790.1.diff, 702 bytes (added by jbronn, 13 years ago)
  • django/contrib/gis/admin/options.py

    diff -r 382a03febff5 django/contrib/gis/admin/options.py
    a b  
    3939    debug = False
    4040    widget = OpenLayersWidget
    4141
    42     def _media(self):
     42    @property
     43    def media(self):
    4344        "Injects OpenLayers JavaScript into the admin."
    44         media = super(GeoModelAdmin, self)._media()
     45        media = super(GeoModelAdmin, self).media
    4546        media.add_js([self.openlayers_url])
    4647        media.add_js(self.extra_js)
    4748        return media
    48     media = property(_media)
    4949
    5050    def formfield_for_dbfield(self, db_field, **kwargs):
    5151        """
Back to Top