don't return None type url_text

This commit is contained in:
Sina Atalay
2024-02-03 15:39:55 +01:00
parent 6b9723fda1
commit d77387674a

View File

@@ -379,7 +379,7 @@ class EntryBase(RenderCVBaseModel):
"""
Return a URL text based on the `url_text_input` and `url` fields.
"""
url_text = None
url_text = ""
if self.url_text_input is not None:
# If the user provides a custom URL text, then use it.
url_text = self.url_text_input