Skip to content

Commit

Permalink
Merge pull request #2513 from Situphen/betafix-2510
Browse files Browse the repository at this point in the history
[Betafix] fix 2510 - Corrige les slugs des MPs
  • Loading branch information
Eskimon committed Apr 7, 2015
2 parents f6fccde + 5b9b667 commit e6de7d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zds/mp/forms.py
Expand Up @@ -88,7 +88,7 @@ class PrivatePostForm(forms.Form):
def __init__(self, topic, *args, **kwargs):
super(PrivatePostForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_action = reverse('private-posts-new', args=[topic.pk, topic.slug])
self.helper.form_action = reverse('private-posts-new', args=[topic.pk, topic.slug()])
self.helper.form_method = 'post'

self.helper.layout = Layout(
Expand Down
2 changes: 1 addition & 1 deletion zds/mp/views.py
Expand Up @@ -202,7 +202,7 @@ def post(self, request, *args, **kwargs):
except ObjectDoesNotExist:
messages.warning(request, _(u'Le membre que vous avez essayé d\'ajouter ne peut pas être contacté.'))

return redirect(reverse('private-posts-list', args=[self.object.pk, self.object.slug]))
return redirect(reverse('private-posts-list', args=[self.object.pk, self.object.slug()]))


class PrivateTopicLeaveList(MultipleObjectMixin, RedirectView):
Expand Down

0 comments on commit e6de7d6

Please sign in to comment.