We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a86ec commit 7ee46b5Copy full SHA for 7ee46b5
src/unfold/fields.py
@@ -139,7 +139,7 @@ def _get_contents(self) -> str:
139
result_repr = display_for_field(value, f, self.empty_value_display)
140
return conditional_escape(result_repr)
141
elif isinstance(f, models.URLField):
142
- return format_html(
+ return value and format_html(
143
'<a href="{}" class="text-primary-600 dark:text-primary-500">{}</a>',
144
value,
145
0 commit comments