4 | | name=name, |
5 | | module='geodjango_%s' % name.replace('-', '_'), # JS-safe |
6 | | serialized=self.serialize(value), |
7 | | geom_type=gdal.OGRGeomType(self.attrs['geom_type']), |
8 | | STATIC_URL=settings.STATIC_URL, |
9 | | LANGUAGE_BIDI=translation.get_language_bidi(), |
10 | | **attrs |
11 | | )) |
| 5 | name=name, |
| 6 | module='geodjango_%s' % name.replace('-', '_'), # JS-safe |
| 7 | serialized=self.serialize(value), |
| 8 | geom_type=gdal.OGRGeomType(self.attrs['geom_type']), |
| 9 | STATIC_URL=settings.STATIC_URL, |
| 10 | LANGUAGE_BIDI=translation.get_language_bidi(), |
| 11 | **attrs |
| 12 | )) |
| 13 | }}} |
18 | | context_kwargs.upgrade(dict( |
19 | | name=name, |
20 | | module='geodjango_%s' % name.replace('-', '_'), # JS-safe |
21 | | serialized=self.serialize(value), |
22 | | geom_type=gdal.OGRGeomType(self.attrs['geom_type']), |
23 | | STATIC_URL=settings.STATIC_URL, |
24 | | LANGUAGE_BIDI=translation.get_language_bidi(), |
| 21 | context_kwargs.update(dict( |
| 22 | name=name, |
| 23 | module='geodjango_%s' % name.replace('-', '_'), # JS-safe |
| 24 | serialized=self.serialize(value), |
| 25 | geom_type=gdal.OGRGeomType(self.attrs['geom_type']), |
| 26 | STATIC_URL=settings.STATIC_URL, |
| 27 | LANGUAGE_BIDI=translation.get_language_bidi(), |