disassociation: manage disassociate_next_url in mappers

This commit is contained in:
Jérôme Schneider 2015-03-10 11:07:45 +01:00
parent 4b8067a865
commit 755bd6af9b
1 changed files with 2 additions and 0 deletions

View File

@ -414,6 +414,8 @@ a password_field key if you want to encode a password.")
qs = parse_qs(env['QUERY_STRING'])
if values.get('next_url'):
next_url = values.get('next_url')
elif self.urls.has_key('disassociate_next_url'):
next_url = self.urls['disassociate_next_url']
else:
next_url = '/'
if qs.has_key('next_url'):