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
addict outputs {'__unicode__': {}} rather than empty string when used in django templates. #54
Comments
Hi @AncientSwordRage, Thanks for submitting this issue! 👍 |
@AncientSwordRage Any update on this? |
I've not named to look into this, but I've not forgotten. On Mon, 22 Jun 2015 8:29 AM Mats Julian Olsen notifications@github.com
|
I'm closing this for now, as it looks a bit lika a django escape sequence. |
I can verify that the passing of the The solution is to use the |
Thanks for clarifying @ckot 👍 |
Here is a rough idea of the code I'm running:
and eventually when I use it with Django's
render_to_string("xml_template.xml",dictionary=context_dictionary)
into this template:And it renders as:
I think that (for some reason) addict is returning an empty dictionary, but the output is being mangled. I know the docs say you can use
to_dict()
but it implies you don't need to.Any idea why this happens?
The text was updated successfully, but these errors were encountered: