MCPcopy
hub / github.com/django/django / PointForm

Class PointForm

tests/gis_tests/test_geoforms.py:437–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436 def test_osm_widget(self):
437 class PointForm(forms.Form):
438 p = forms.PointField(widget=forms.OSMWidget)
439
440 geom = self.geometries["point"]
441 form = PointForm(data={"p": geom})

Callers 8

test_override_attrsMethod · 0.70
test_pointfieldMethod · 0.70
test_multipointfieldMethod · 0.70
test_osm_widgetMethod · 0.70
test_default_lat_lonMethod · 0.70

Calls

no outgoing calls

Tested by 8

test_override_attrsMethod · 0.56
test_pointfieldMethod · 0.56
test_multipointfieldMethod · 0.56
test_osm_widgetMethod · 0.56
test_default_lat_lonMethod · 0.56