diff -r 382a03febff5 django/contrib/gis/admin/options.py
a
|
b
|
|
39 | 39 | debug = False |
40 | 40 | widget = OpenLayersWidget |
41 | 41 | |
42 | | def _media(self): |
| 42 | @property |
| 43 | def media(self): |
43 | 44 | "Injects OpenLayers JavaScript into the admin." |
44 | | media = super(GeoModelAdmin, self)._media() |
| 45 | media = super(GeoModelAdmin, self).media |
45 | 46 | media.add_js([self.openlayers_url]) |
46 | 47 | media.add_js(self.extra_js) |
47 | 48 | return media |
48 | | media = property(_media) |
49 | 49 | |
50 | 50 | def formfield_for_dbfield(self, db_field, **kwargs): |
51 | 51 | """ |