furious-luke / django-address

A Django address model and field. Addresses may be specified by address components or by performing an automatic Google Maps lookup.
BSD 3-Clause "New" or "Revised" License
430 stars 180 forks source link

Fallback to form fields if autocomplete is not available #145

Open TeoGoddet opened 3 years ago

TeoGoddet commented 3 years ago

What i have now when not providing a google api key : image Doc says : "However if this isn't possible the raw address is used and the user is responsible for breaking the address down into components."

Would it be possible to have the form field for each address components in this case ?

banagale commented 3 years ago

@TeoGoddet Thanks for posting your issue.

Can you provide some of the relevant code samples that show how you're using the library?

TeoGoddet commented 3 years ago

I'm using {{ form.media }} and {{ form.address }} with an address = AddressField() line in my model. with a GOOGLE_API_KEY set to some ransom inexistent key. But i have user who'd better enter the address themselves than using Gapis. so i was wondering if there was a fallback possible ?