Skip to content

Conversation

GVRV
Copy link

@GVRV GVRV commented Jan 22, 2016

…ld pop the value into the top-most context dict instead of the bottom-most context dict.

This is a bug with the current implementation. Let's say I have the following in my template code:

{% get_metadata as meta %}

it will add meta into the bottom-most context dict, so if there's another context dict on top with a variable meta, it will override the value here and my meta information won't be displayed (or even worse, it'll display wrong/gibberish information).

You can avoid this scenario by choosing a unique variable name here, but I think this bug should be fixed at the source.

…ld pop the value into the top-most context dict instead of the bottom-most context dict.
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

Successfully merging this pull request may close these issues.

1 participant