django-geocoder icon indicating copy to clipboard operation
django-geocoder copied to clipboard

Enforce need_geocoding check

Open cvng opened this issue 8 years ago • 0 comments

Avoid calling geocode() if geocoded_by is not set, with a guard-condition, like this:

need_geocoding = False
if not self.geocoded_by:
    return need_geocoding

https://github.com/cvng/django-geocoder/blob/master/django_geocoder/mixins.py#L14

cvng avatar Nov 09 '16 18:11 cvng