Fix incorrect feedback on invite form

This commit is contained in:
Raphael Michel
2018-11-16 14:13:44 +01:00
parent 546ff6e42f
commit 5c8d9c4dca

View File

@@ -167,8 +167,8 @@ def invite(request, token):
}
)
inv.delete()
messages.success(request, _('Welcome to pretix! You are now part of the team "{}".').format(inv.team.name))
return redirect('control:index')
messages.success(request, _('Welcome to pretix! You are now part of the team "{}".').format(inv.team.name))
return redirect('control:index')
else:
form = RegistrationForm(initial={'email': inv.email})
ctx['form'] = form