divio/django-cms — pull request #1383 by GaretJax (2012-08-10 17:38:42+00:00)
Title: Multiple apphooks reversion support

Starting a pull request on this one (it's not intended to be merged yet).

Missing documentation and tests, but looking for feedback as this is my first contribution to django-cms. :-)

This PR adds support for the current_app attribute to the different context instances passed around in django cms and registers apphook urls using app and instance namespaces to allow url reversion of multiple apphook instances.

An additional middleware will populate the current_app attribute of the request instance passed to the view.