pbs/django-cms-smartsnippets — pull request #42 by zoliszeredi (2014-03-05 16:00:18+00:00)
Title: Fix missing content blocks for cached smartsnippets.

The issue fixed is the restoring in the context object of the Sekizai
content. Normally the content would have been added at the time
the *addtoblock* tag is rendered. Unfortunately this caused missing
css/js content since the addtoblock tag never got rendered. Therefore
the blocks content never got added in the context object.

Sekizai 0.7.0 provides a watch mechanism for the context objects.
This keeps track of what's being added to the context after rendering.
By storing alongside the rendered content, the this context difference
we can restore the missing *addtoblock* contents.

See also: https://github.com/divio/django-cms/issues/1577