Commit 8fd7cf9a authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix invite view

Invite view and function had the same name.
parent 8d1d2988
......@@ -96,7 +96,7 @@ from import (
send_feedback, SendMailError,
logout as auth_logout,
activate as activate_func,
invite as invite_func,
send_activation as send_activation_func,
......@@ -322,7 +322,7 @@ def invite(request, template_name='im/invitations.html', extra_context=None):
email = form.cleaned_data.get('username')
realname = form.cleaned_data.get('realname')
invite(inviter, email, realname)
invite_func(inviter, email, realname)
message = _(astakos_messages.INVITATION_SENT) % locals()
messages.success(request, message)
except SendMailError, e:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment