Skip to content

Commit 479197f

Browse files
author
Miguel Leon
authored
Merge pull request #211 from ODM2/afterdjango2
change for sampling features form
2 parents c3a0bc8 + 1f3689b commit 479197f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

odm2admin/forms.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
from .readonlyadmin import ReadOnlyAdmin
9393
from .listfilters import SamplingFeatureTypeListFilter
94-
94+
# import pyproj
9595

9696
# from .admin import MeasurementresultvaluesResource
9797
# AffiliationsChoiceField(People.objects.all().order_by('personlastname'),
@@ -787,10 +787,12 @@ def __init__(self, *args, **kwargs):
787787
u'here: <a href="http://vocabulary.odm2.org/elevationdatum/" ' \
788788
u'target="_blank">http://vocabulary.odm2.org/elevationdatum/</a>'
789789
elevation_datum.allow_tags = True
790-
featuregeometry = forms.PointField(label='Featuregeometry',
791-
widget=forms.OpenLayersWidget(), required=False)
790+
# featuregeometry is not working in production I think GDAL_DATA setting is needed but I'm not sure what to point
791+
# it to. This was not working well in either case though.
792+
# featuregeometry = forms.PointField(label='Featuregeometry',
793+
# widget=forms.OSMWidget(), required=False)
792794

793-
featuregeometry.initial = GEOSGeometry("POINT(0 0)")
795+
# featuregeometry.initial = GEOSGeometry("POINT(0 0)")
794796

795797

796798
class SitesInline(admin.StackedInline):

0 commit comments

Comments
 (0)