Skip to content

Instantly share code, notes, and snippets.

@clooth
Created August 15, 2012 21:01
Show Gist options
  • Save clooth/3363665 to your computer and use it in GitHub Desktop.
Save clooth/3363665 to your computer and use it in GitHub Desktop.
latitude = forms.CharField(widget=GoogleMapsWidget(attrs={'map_width': 640, 'map_height': 480, 'longitude_id': 'id_longitude'}),
error_messages={'required': 'Please select a location on the map.'},
label='Location'
)
longitude = forms.CharField(widget=forms.HiddenInput())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment