You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering it I get the following stacktrace deep into floppyforms: ValueError: dictionary update sequence element #0 has length 6; 2 is required
...because the context that gets sent in via takes_context is a list of dictionaries, not a dictionary. I think it's because that each context_processor adds one dictionary and that Django transparently handles that normally.
I'll have a look at the tests tomorrow and see if I can make them fail by adding more of my use case in there. I have an {% include "template.html" %} there and I think that context_processors might affect the how the context is returned. But I need to experiment a bit to get to a use case. Thanks for getting me started! :)
I have an inclusion tag that looks something like this:
When rendering it I get the following stacktrace deep into floppyforms:
ValueError: dictionary update sequence element #0 has length 6; 2 is required
...because the context that gets sent in via takes_context is a list of dictionaries, not a dictionary. I think it's because that each context_processor adds one dictionary and that Django transparently handles that normally.
Here's the full stacktrace: http://dpaste.com/2FWD49D
It does not happen in floppyforms 1.3.0, but happens in 1.4.1. I think it might have something to do with this commit: d591b12
A workaround is to apply flatten_contexts to the inclusion tag:
Sorry that I don't have time to write a proper testcase right now.
The text was updated successfully, but these errors were encountered: