Wrap 2 more BASE_URL usages with str()

In 59372aba33 a lazily evaluated BASE_URL tool was introduced.
I found 2 more cases in which BASE_URL was not "collapsed into a
string" magically by `__add__`, one of which actually causing
an `Object of type TenantBaseURL is not JSON serializable`
This commit is contained in:
Klaas van Schelven
2025-01-30 08:52:38 +01:00
parent cf3b588eb7
commit 9ae6233965
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ def _make_message_body():
"settings": {
# Settings that tell us "who you are", and are relevant in the context of licensing.
"BASE_URL": get_settings().BASE_URL,
"BASE_URL": str(get_settings().BASE_URL),
"SITE_TITLE": get_settings().SITE_TITLE,
"DEFAULT_FROM_EMAIL": settings.DEFAULT_FROM_EMAIL,