Adds instagram body when posting

master
Laurent 6 years ago
parent f5ba4b4c8a
commit 85da9fe138
  1. 2
      news/templates/news/index.html
  2. 2
      news/views.py

@ -8,9 +8,11 @@
{% if messages %}
<p>
{% autoescape off %}
{% for message in messages %}
<span class="primary label">{{ message }}</span>
{% endfor %}
{% endautoescape %}
</p>
{% endif %}

@ -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!<br/>Instagram text:<br/> %s <br/>.<br/>.<br/>.<br/>.<br/>.<br/>#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'))

Loading…
Cancel
Save