brutasse/django-floppyforms — pull request #43 by ddanier (2012-09-04 14:29:34+00:00)
Title: Widgets clutter template context

Widgets will use the context_instance of the template (provides by the template tag) if possible. Because widgets also add more data to this context (using context.update()) they do an implicit push on the template context. All template tags normally do a pop afterwards to restore order. As the widget has no means to know about using the template context outside of get_context() the pop() is never done (and probably is not easy to implement). I fixed this by using a copy of the original context(_instance) to render the widget templates. Not sure if this affects other code parts, but this actually did cost some time to debug. Changing the base Widget seems to work here for now, hope no other incarnations of this bug will occur.