Fixed redirect after creating/rejecting a request/invite.
Addresses Issue 374.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/request.py Fri Mar 20 10:57:54 2009 +0000
+++ b/app/soc/views/models/request.py Fri Mar 20 11:49:12 2009 +0000
@@ -164,8 +164,8 @@
request_logic.updateEntityProperties(request_entity, {
'status': 'rejected'})
- # redirect to user role overview
- return http.HttpResponseRedirect('/user/roles')
+ # redirect to user request overview
+ return http.HttpResponseRedirect('/user/requests')
# put the entity in the context
context['entity'] = request_entity
--- a/app/soc/views/models/role.py Fri Mar 20 10:57:54 2009 +0000
+++ b/app/soc/views/models/role.py Fri Mar 20 11:49:12 2009 +0000
@@ -575,8 +575,8 @@
# TODO(ljvderijk): send out a message to alert the users
# able to process this request
- # redirect to roles overview
- return http.HttpResponseRedirect('/user/roles')
+ # redirect to requests overview
+ return http.HttpResponseRedirect('/user/requests')
@decorators.merge_params