Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c8727102
Commit
c8727102
authored
Jan 25, 2012
by
Sofia Papagiannaki
Browse files
signup view in case of any error display error message
parent
e2125441
Changes
1
Hide whitespace changes
Inline
Side-by-side
astakos/im/views.py
View file @
c8727102
...
...
@@ -312,7 +312,7 @@ def signup(request, template_name='signup.html', extra_context={}, backend=None)
if
next
:
return
redirect
(
next
)
messages
.
add_message
(
request
,
status
,
message
)
except
Invitation
.
DoesNotExist
,
e
:
except
(
Invitation
.
DoesNotExist
,
Exception
),
e
:
messages
.
add_message
(
request
,
messages
.
ERROR
,
e
)
return
render_response
(
template_name
,
form
=
form
if
'form'
in
locals
()
else
UserCreationForm
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment