Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreJunod committed May 30, 2024
2 parents fc568eb + d48126f commit 41282be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geocity/apps/reports/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def preprocess_field_format(value):
"""

if isinstance(value, list):
print(len(value))
if len(value) > 1:
result = "- " + "<br>- ".join(str(item) for item in value)
else:
Expand All @@ -34,7 +33,7 @@ def preprocess_field_format(value):
if isinstance(value, bool):
return "Vrai" if value else "Faux"

if value:
if value and isinstance(value, str):
return mark_safe(value.replace("\r\n", "<br>").replace("\n", "<br>"))

return value
Expand Down

0 comments on commit 41282be

Please sign in to comment.