1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 09:18:22 +02:00

Address, responsible and phone number were missing. Use Google Maps API to query the address, to ensure to have valid addresses

This commit is contained in:
Yohann D'ANELLO
2020-12-28 23:59:21 +01:00
parent 95fec7c0da
commit 72753edf64
10 changed files with 118 additions and 11 deletions

View File

@ -53,11 +53,13 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'django.forms',
'address',
'bootstrap_datepicker_plus',
'crispy_forms',
'django_tables2',
'haystack',
'logs',
'phonenumber_field',
'polymorphic',
'rest_framework',
'rest_framework.authtoken',
@ -225,3 +227,9 @@ if os.getenv("TFJM_STAGE", "dev") == "prod": # pragma: no cover
from .settings_prod import * # noqa: F401,F403
else:
from .settings_dev import * # noqa: F401,F403
# Custom phone number format
PHONENUMBER_DB_FORMAT = 'NATIONAL'
PHONENUMBER_DEFAULT_REGION = 'FR'
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")