Skip to content

Commit

Permalink
rolling back reinitialization of the form
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Jan 9, 2018
1 parent 82f5282 commit 80ef321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invitations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def form_valid(self, form):
return self.form_invalid(form)
return self.render_to_response(
self.get_context_data(
success_message=_('%(email)s has been invited') % {"email": email},
form=self.get_form_class()))
success_message=_('%(email)s has been invited') % {"email": email}))

def form_invalid(self, form):
return self.render_to_response(self.get_context_data(form=form))
Expand Down

0 comments on commit 80ef321

Please sign in to comment.