stephenmcd / mezzanine

CMS framework for Django
http://mezzanine.jupo.org
BSD 2-Clause "Simplified" License
4.75k stars 1.64k forks source link

raises error on nested override site #2073

Open rapto opened 2 months ago

rapto commented 2 months ago

When calls to override_current_site_id are nested, no errors are raised until the deepest context __exit__. This patch detects this use and raises an error.

Of course, we could implement nested calls. The test is prepared for that time.