Skip to content
Snippets Groups Projects
Verified Commit ef3733bd authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use enough decimal places for lat/lon for Firefox/Chrome

parent 248cb930
No related branches found
No related tags found
1 merge request!30Resolve "Checkpoint system"
......@@ -526,15 +526,15 @@ class EventCheckpointForm(forms.Form):
required=False,
min_value=-90.0,
max_value=90.0,
max_digits=8,
decimal_palces=6,
max_digits=10,
decimal_palces=8,
# widget=forms.HiddenInput()
)
lon = forms.DecimalField(
required=False,
min_value=-180.0,
max_value=180.0,
max_digits=9,
decimal_palces=6,
max_digits=11,
decimal_palces=8,
# widget=forms.HiddenInput()
)
......@@ -415,5 +415,5 @@ class Checkpoint(ExtensibleModel):
comment = models.CharField(max_length=60, verbose_name=_("Comment"))
timestamp = models.DateTimeField(verbose_name=_("Date and time of check"), auto_now_add=True)
lat = models.DecimalField(max_digits=8, decimal_places=6, verbose_name=_("Latitude of check"), blank=True, null=True)
lon = models.DecimalField(max_digits=9, decimal_places=6, verbose_name=_("Longitude of check"), blank=True, null=True)
lat = models.DecimalField(max_digits=10, decimal_places=8, verbose_name=_("Latitude of check"), blank=True, null=True)
lon = models.DecimalField(max_digits=11, decimal_places=8, verbose_name=_("Longitude of check"), blank=True, null=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment