diff --git a/management/commands/refresh_activities.py b/management/commands/refresh_activities.py index 4500e51b6b51bfca78bb1d856526cc6952bc18b2..afc4e3ca4e663bdd4f5815880484f3432e8e9d71 100644 --- a/management/commands/refresh_activities.py +++ b/management/commands/refresh_activities.py @@ -100,7 +100,7 @@ class Command(BaseCommand): title=act.name, start=timezone.localtime(act.date_start).strftime("%Y-%m-%d %H:%M"), end=timezone.localtime(act.date_end).strftime("%Y-%m-%d %H:%M"), - description=act.description, + description=act.description.replace("\r", "").replace("\n", "<<BR>>"), club=act.organizer.name, location=act.location, ) @@ -108,7 +108,7 @@ class Command(BaseCommand): return "|| {start} || {title} || {description} || {club} || {location} ||".format( title=act.name, start=timezone.localtime(act.date_start).strftime("%d/%m/%Y"), - description=act.description, + description=act.description.replace("\r", "").replace("\n", "<<BR>>"), club=act.organizer.name, location=act.location, )