openwisp-controller icon indicating copy to clipboard operation
openwisp-controller copied to clipboard

[geo] Restrict to points only #151

Open NoumbissiValere opened this issue 5 years ago • 4 comments

Fixed the issue by adding a clean method to the location model. This method ensures that when the geometry is not None, it should be an instance of a Point Geometry else a ValidationError is raised

Fixed #151

NoumbissiValere avatar Mar 21 '20 06:03 NoumbissiValere

@nemesisdesign Please can review this? Thanks

NoumbissiValere avatar Mar 21 '20 07:03 NoumbissiValere

Coverage Status

Coverage increased (+0.02%) to 97.722% when pulling 78a49f677d19c154ca443805bc513346366d6c5d on NoumbissiValere:only_points into 667419bab2373530a4837e31489ca62c44561047 on openwisp:master.

coveralls avatar Mar 24 '20 18:03 coveralls

Coverage Status

Coverage increased (+0.02%) to 97.722% when pulling 78a49f677d19c154ca443805bc513346366d6c5d on NoumbissiValere:only_points into 667419bab2373530a4837e31489ca62c44561047 on openwisp:master.

coveralls avatar Mar 24 '20 18:03 coveralls

:smile: I can have a look at it

NoumbissiValere avatar Jul 01 '20 03:07 NoumbissiValere