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

Allow using variables from context processor inside form templates #436

Closed
cool-RR opened this issue May 25, 2015 · 1 comment
Closed

Allow using variables from context processor inside form templates #436

cool-RR opened this issue May 25, 2015 · 1 comment

Comments

@cool-RR
Copy link

cool-RR commented May 25, 2015

Currently if you try to override the crispy_forms templates and use something like {{ request }} it can't really find the request.

@lskillen
Copy link
Contributor

This sounds like it would be solved by #579 - The problem is that the crispy form tag processing builds up an individual context based (mostly) on attributes received from the helper in addition to a couple of selection ones, such as csrf_token. The PR adds implicit context passing, so {{ request }} would work if that was already present on the context.

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

No branches or pull requests

2 participants