summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-01-23 19:48:13 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-01-23 19:48:13 (GMT)
commitcd42622b22af7f514c6ca6ec19087339b6260088 (patch)
tree608bf86e32fd35676b4dfc9c1006c2e43f865ceb
parent308d46e51b7b0bbe808643a8787709784c8299c3 (diff)
downloadwelco-cd42622b22af7f514c6ca6ec19087339b6260088.zip
welco-cd42622b22af7f514c6ca6ec19087339b6260088.tar.gz
welco-cd42622b22af7f514c6ca6ec19087339b6260088.tar.bz2
maarch: force external_id to string (fixes #30045)v0.68
-rw-r--r--tests/test_source_maarch.py2
-rw-r--r--welco/sources/mail/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_source_maarch.py b/tests/test_source_maarch.py
index d01c924..8a2461b 100644
--- a/tests/test_source_maarch.py
+++ b/tests/test_source_maarch.py
@@ -236,7 +236,7 @@ def test_feed(settings, app, maarch, wcs, user):
'status': 'GRCSENT',
'externalInfos': [
{
- 'external_id': 1,
+ 'external_id': '1',
'external_link': 'http://wcs.example.net/slug-1/1',
'res_id': 1,
}
diff --git a/welco/sources/mail/utils.py b/welco/sources/mail/utils.py
index d8c087f..953e73a 100644
--- a/welco/sources/mail/utils.py
+++ b/welco/sources/mail/utils.py
@@ -46,7 +46,7 @@ class WelcoMaarchCourrier(MaarchCourrier):
def set_grc_sent_status(self, mail_pk, formdata_id, formdata_url_backoffice):
mail = self.Courrier(self, pk=mail_pk)
- mail.external_id = formdata_id
+ mail.external_id = str(formdata_id)
mail.external_link = formdata_url_backoffice
self.update_external_infos([mail], self.grc_send_status)