Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration option to return to view #9

Closed
jeremiahsa opened this issue Oct 4, 2013 · 1 comment
Closed

Configuration option to return to view #9

jeremiahsa opened this issue Oct 4, 2013 · 1 comment
Milestone

Comments

@jeremiahsa
Copy link

When I edit an annotation, upon saving, it returns to the annotation-detail page. I would like to have a configuration option that will let me choose where to redirect. Perhaps it could be a parameter for app.router.customize_page?

@sheppard
Copy link
Member

sheppard commented Oct 4, 2013

Yes, this is a good option to have. I updated app.js to support a postsave configuration option that should be the name of the model you want to return to after saving. (The model is assumed to be one of the foreign keys on the model that was just saved).

You should be able to activate this functionality by adding the following to your urls.py:

app.router.customize_page('annotation', {'postsave': '[modelname]'})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants