Jun-21-2018, 11:55 AM
(This post was last modified: Jun-21-2018, 11:55 AM by gontajones.)
Where in your code are you writing the input in the DB?
Before the method save(), you should split location:
Before the method save(), you should split location:
myModel = form.Place() location = myModel.cleaned_data['location'] latitude,longitude = [float(x) for x in location.split(',')] myModel.save()