Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin does not query google #158

Open
Leikaab opened this issue Oct 10, 2021 · 2 comments
Open

Admin does not query google #158

Leikaab opened this issue Oct 10, 2021 · 2 comments

Comments

@Leikaab
Copy link

Leikaab commented Oct 10, 2021

Hi,

we are trying to use your address field to replace our current address model and add google functionality.
Our app is a backend drf server
When using the django admin to add addresses, we can not get any google functionality. Is this intended for forms only?

@furious-luke
Copy link
Owner

Hi @Leikaab! Thanks for reaching out. You can indeed use a Google address widget in the Django Admin. Please take a look in the example site admin file: example_site/person/admin.py. You'll need to update the admin definition for any model on which you're using an AddressField to use the AddressWidget. Hope that helps!

@xjlin0
Copy link
Contributor

xjlin0 commented Mar 1, 2022

Defining your GOOGLE_API_KEY in settings is also important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants