divio / aldryn-newsblog

A combined news/weblog application for Aldryn and django CMS – part of the Essential Addons.
https://marketplace.django-cms.org/en/addons/browse/aldryn-newsblog/
Other
67 stars 118 forks source link

Lead content rendered as HTML verbatim #433

Open FabriceSalvaire opened 8 years ago

FabriceSalvaire commented 8 years ago

For some reason the lead content of edited articles is rendered as HTML verbatim.

A server restart solved the issue.

yboussard commented 8 years ago

I have the same issue ! capture d ecran 2016-10-19 a 17 20 31

kirimi commented 8 years ago

I also have the same issue. Uwsgi restart solves the issue.

jpVm5jYYRE1VIKL commented 7 years ago

Issue not uwsgi related. I have the same if even i use runserver . After some time issue disappear. Issue appear after every new blog page added

maartinez commented 7 years ago

Same here. Tested on runserver. It happens every time I add new article. But after few minutes when I refresh the page, even without restarting the server, everything is back to normal...

Edit: In aldryn_newsblog/templates/aldryn_newsblog/includes/article.html I changed this line: {% render_model article "lead_in" %} to: {{ article.lead_in|safe }} and now it looks like it's working.

johnwoltman commented 7 years ago

I'm seeing the same issue. The solution from @maartinez works, but removes the "click to edit" feature from the lead-in.

sonic182 commented 7 years ago

Same issue here

image

maybe the implementation of render_model is doing it wrong. Could be fixed with more parameters I think. A djangocms issue then.