Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.31 KB

README.rst

File metadata and controls

45 lines (30 loc) · 1.31 KB

django-geowidgets

Coverage Updates

Currently this only contains LatLonWidget and LatLonField. LatLonWidget is a simple MultiWidget showing latitude and longitude. LatLonField is a form field that by default uses LatLonWidget.

from django import forms

from geowidgets import LatLonField

from . import models


class MyForm(forms.ModelForm):
    location = LatLonField(
        label="Co-ordinates",
        help_text="Longitude and latitude in decimal degrees",
    )

    class Meta:
        model = models.MyModel

django-geowidgets is free software, available under the GNU General Public License v3. See the LICENCE file for details.