django-location-field icon indicating copy to clipboard operation
django-location-field copied to clipboard

location_field.forms.spacial.LocationField always thinks it's changed (even if it hasn't)

Open alantrick opened this issue 5 years ago • 0 comments

The problem is that LocationField stores its value as a lat,long string most of the time, but when it comes back from the database, it's a Point. By default it gets compared using == and this fails because there's no generic way to compare those types.

I'll post a PR shortly.

alantrick avatar Mar 29 '19 03:03 alantrick