diff --git a/news/templates/news/index.html b/news/templates/news/index.html index 0e5afbf..9aeba0f 100644 --- a/news/templates/news/index.html +++ b/news/templates/news/index.html @@ -8,9 +8,11 @@ {% if messages %}

- {% for message in messages %} - {{ message }} - {% endfor %} + {% autoescape off %} + {% for message in messages %} + {{ message }} + {% endfor %} + {% endautoescape %}

{% endif %} diff --git a/news/views.py b/news/views.py index 0b7ad98..771cedb 100644 --- a/news/views.py +++ b/news/views.py @@ -131,7 +131,7 @@ def submission(request): post.state = PostState.USER_SUBMITTED.value post.save() - messages.success(request, 'GG! Thanks for posting!') + messages.success(request, 'GG! Thanks for posting!
Instagram text:
%s
.
.
.
.
.
#poker #pokernews #pokerlife #wsop #pokernight #chipporn #pokerlive #pokergrind #pokerrumble' % form.cleaned_data['title']) #return render(request, 'news/index.html', context) return HttpResponseRedirect(reverse('news:index'))