Parcourir la source

Fix issue #12 : longitude and latitude are required fields

In issue #12 ; we want our users to explicitly select their area.
To do this, we remove marker on the map. As lat/lon are required, user
must put the marker manually on the map

Signed-off-by: CapsLock <faimaison@legeox.net>
CapsLock il y a 9 ans
Parent
commit
c8ba514b0a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      wifiwithme/apps/contribmap/models.py

+ 2 - 2
wifiwithme/apps/contribmap/models.py

@@ -22,8 +22,8 @@ class Contrib(models.Model):
             (CONTRIB_CONNECT, 'Me raccorder au réseau expérimental'),
             (CONTRIB_SHARE, 'Partager une partie de ma connexion')
         ), default=None)
-    latitude = models.FloatField(blank=True, null=True)
-    longitude = models.FloatField(blank=True, null=True)
+    latitude = models.FloatField()
+    longitude = models.FloatField()
     phone = models.CharField(
         'Téléphone',
         max_length=30, blank=True, default='')