Revision 1a3675a0 astakos/im/views.py
b/astakos/im/views.py | ||
---|---|---|
175 | 175 |
The view expectes the following settings are defined: |
176 | 176 |
|
177 | 177 |
* LOGIN_URL: login uri |
178 |
* SIGNUP_TARGET: Where users should signup with their invitation code |
|
179 | 178 |
* DEFAULT_CONTACT_EMAIL: service support email |
180 | 179 |
* DEFAULT_FROM_EMAIL: from email |
181 | 180 |
""" |
... | ... | |
253 | 252 |
if form.is_valid(): |
254 | 253 |
try: |
255 | 254 |
form.save() |
255 |
next = request.POST.get('next') |
|
256 |
if next: |
|
257 |
return redirect(next) |
|
256 | 258 |
msg = _('Profile has been updated successfully') |
257 | 259 |
messages.add_message(request, messages.SUCCESS, msg) |
258 | 260 |
except ValueError, ve: |
259 | 261 |
messages.add_message(request, messages.ERROR, ve) |
260 |
next = request.POST.get('next') |
|
261 |
if next: |
|
262 |
return redirect(next) |
|
263 | 262 |
return render_response(template_name, |
264 | 263 |
form = form, |
265 | 264 |
context_instance = get_context(request, |
Also available in: Unified diff