-
Notifications
You must be signed in to change notification settings - Fork 600
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
django_compressor killed my 'name' variable #156
Comments
Culprit: https://github.com/jezdez/django_compressor/blob/develop/compressor/templatetags/compress.py#L81 it's a much to generic name and too risky to squeeze in to the context. |
Just dropping a note to say that I also have this issue. |
Agreed, this is kinda related to #151. A combined fix would be appreciated. |
I'm coding overflow the weekend. I'll see if I can pull together a fix. This message was sent from my phone, so please excuse its brevity,
|
I have no idea why my phone decided I meant overflow instead of over... This message was sent from my phone, so please excuse its brevity,
|
My basic template looked something like this:
All was fine until I added django_compressor. Now template context variable
name
becomesNone
.I know that "name" is a poor choice of a variable but django_compressor shouldn't interfere anyway. Going to do some more debugging into django_compressor to confirm that this is the case. I changed from "name" to "foobar_name" (which is better anyway) and that solved my immediate problem.
The text was updated successfully, but these errors were encountered: