Browse Source

undid change. linebreaks are back

This is needed because there are already some entries in the DB with linebreaks
Juan Carlos 4 năm trước cách đây
mục cha
commit
c3d7e22ae4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      marktplatz/templates/marktplatz/product_detail.html

+ 2 - 2
marktplatz/templates/marktplatz/product_detail.html

@@ -143,8 +143,8 @@
 			</div>
 
 
-			<div class="">{% if object.beschreibung %}<strong>{% field_name object 'beschreibung' %}</strong>:<br>{{ object.beschreibung | safe }}{% endif %}</div>
-			<div class="">{% if object.learning %}<strong>{% field_name object 'learning' %}</strong>:<br>{{ object.learning | safe }}{% endif %}</div>
+			<div class="">{% if object.beschreibung %}<strong>{% field_name object 'beschreibung' %}</strong>:<br>{{ object.beschreibung | safe | linebreaks }}{% endif %}</div>
+			<div class="">{% if object.learning %}<strong>{% field_name object 'learning' %}</strong>:<br>{{ object.learning | safe | linebreaks }}{% endif %}</div>
 
 
 			<div class="">