allow custom redirect target when impersonating

#5 Merged
Repository
chrisv
Branch
default
Repository
petersanchez
Branch
default
Author
  1. Chris Vigelius
Reviewers
Description

This patch allows to set a custom redirect URL when calling the impersonate view. This is useful if you want to switch user, but stay on the current page.

Comments (4)

  1. Peter Sanchez repo owner

    Chris - Can you please update the doc strings for the search_users view to include the 2 extra context variables. Also ensure full PEP8 compliance. Lines longer than 79 chars need to be trimmed down. Once that's done, update the pull request and I'll merge it in.

    Thank you for this work!

    Peter

  2. Chris Vigelius author

    fixed all pep8 errors in views.py, helpers,py except E126/E127 ("continuation line over-indented" - don't know how to fix that, the mentioned lines look properly indented to me)