maraujop/django-crispy-forms — pull request #172 by mcnemesis (2013-04-26 22:54:35+00:00)
Title: Access keys() for both dict and RequesContext

Note that the current implementation would fail (in some cases - like mine where I render the form with a RequestContext ) when rendering Layout() elements on the helper, since under the KeepContext's __enter__ and __exit__ you assume that all "dicts" shall expose the keys() method, which doesn't happen for RequestContext objects.