divio/django-cms — pull request #3431 by DylannCordel (2014-09-04 10:38:30+00:00)
Title: menu_tags context's stack bug

Because context.update add a new level in the Context's stack and because there is never a context.pop called in menu_tags, the context AFTER a menu_tags call is not the same than BEFORE the call and there is some funny.

## How to reproduce

onecolum.html :

```

Dolly vs Magic Pony Fight

{% block main %}

some content

{% endblock %}
```

twocolumns.html :

```
{% extends "one_olumn.html" %}
{% load menu_tags %}
{% block main %}
{% with template='Magic Pony is the best !' %}

{{ template }}

{% block sidebar %}

But Dolly could be a problem !
{% show_sub_menu 1 %}

{{ template }}

{% endblock %}
{{ block.super }}
{% endwith %}
{% endblock %}
```

### Expected Result

When twocolumns.html is rendered, we should have :

```

Dolly vs Magic Pony Fight

Magic Pony is the best !

But Dolly could be a problem !

Magic Pony is the best !

some content

```

### Current Result

But when twocolumns.html is rendered, we currently have :

```

Dolly vs Magic Pony Fight

Magic Pony is the best !

But Dolly could be a problem !

menu/sub_menu.html

But Dolly could be a problem !

menu/sub_menu.html

```