Skip to content

Commit

Permalink
topic template and poll view fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeyseR committed Jun 3, 2013
1 parent a25ffc2 commit 488512a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pybb/templates/pybb/topic.html
Expand Up @@ -25,7 +25,7 @@ <h1>{{ topic.name }}</h1>
{% include "pybb/pagination.html" %}
{% endwith %}

{% if topic.poll_type != 0 %}
{% if topic.poll_type %}
{% include 'pybb/poll.html' %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion pybb/views.py
Expand Up @@ -600,7 +600,7 @@ def form_valid(self, form):
return super(ModelFormMixin, self).form_valid(form)

def form_invalid(self, form):
return self.object.get_absolute_url()
return redirect(self.object)

def get_success_url(self):
return self.object.get_absolute_url()
Expand Down

0 comments on commit 488512a

Please sign in to comment.