summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-09 20:57:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-03-12 08:27:11 (GMT)
commitb75755ffe8a9f530180c8d73eee42c83d343682a (patch)
tree3852e4d92c4adbbf58aee49a3bb2529570ef42c9
parent93eacef3998c711d2c7e6fe2aa53c5ca5663d93d (diff)
downloadhobo-b75755ffe8a9f530180c8d73eee42c83d343682a.zip
hobo-b75755ffe8a9f530180c8d73eee42c83d343682a.tar.gz
hobo-b75755ffe8a9f530180c8d73eee42c83d343682a.tar.bz2
profile: switch birth date field to the new birthdate field type (#22443)v0.82
-rw-r--r--hobo/profile/migrations/0002_add_data.py2
-rw-r--r--tests_authentic/test_hobo_deploy.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/hobo/profile/migrations/0002_add_data.py b/hobo/profile/migrations/0002_add_data.py
index bd33239..8955ace 100644
--- a/hobo/profile/migrations/0002_add_data.py
+++ b/hobo/profile/migrations/0002_add_data.py
@@ -17,7 +17,7 @@ def add_initial_data(apps, schema_editor):
{'label': u'Code postal', 'name': 'zipcode'},
{'label': u'Commune', 'name': 'city'},
{'label': u'Pays', 'name': 'country', 'disabled': True},
- {'label': u'Date de naissance', 'name': 'birthdate', 'disabled': True},
+ {'label': u'Date de naissance', 'name': 'birthdate','kind': 'birthdate', 'disabled': True},
{'label': u'Téléphone', 'name': 'phone'},
{'label': u'Mobile', 'name': 'mobile'},
]
diff --git a/tests_authentic/test_hobo_deploy.py b/tests_authentic/test_hobo_deploy.py
index 22b9580..cef15c8 100644
--- a/tests_authentic/test_hobo_deploy.py
+++ b/tests_authentic/test_hobo_deploy.py
@@ -238,7 +238,7 @@ def test_hobo_deploy(tenant_base, settings, mocker, skeleton_dir):
'name': 'country'
},
{
- 'kind': 'string',
+ 'kind': 'birthdate',
'description': '',
'required': False,
'user_visible': True,