Set 'projection' attribute as required in GPS positions
authorThierry Florac <thierry.florac@onf.fr>
Fri, 26 Jan 2018 15:56:21 +0100
changeset 15 d2f2e0b480e2
parent 14 dd58772914a9
child 16 5755c811bf11
Set 'projection' attribute as required in GPS positions
src/pyams_gis/interfaces/__init__.py
--- a/src/pyams_gis/interfaces/__init__.py	Sun Jan 14 12:51:41 2018 +0100
+++ b/src/pyams_gis/interfaces/__init__.py	Fri Jan 26 15:56:21 2018 +0100
@@ -69,7 +69,7 @@
     projection = Choice(title=_("Projection system"),
                         vocabulary=COORDINATES_PROJECTION_VOCABULARY,
                         default=WGS84,
-                        required=False)
+                        required=True)
 
     @invariant
     def check_coordinates(self):
@@ -110,7 +110,7 @@
     projection = Choice(title=_("Projection system"),
                         vocabulary=COORDINATES_PROJECTION_VOCABULARY,
                         default=WGS84,
-                        required=False)
+                        required=True)
 
     @invariant
     def check_coordinates(self):