-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snippet_fragment overwrite 'object' value #38
Comments
Please can you give a full (preferably simplified) code source for your steps 1 and 3? Is in your case context argument is a Context or a dict? |
for step 1, this is achieved using Django-CMS admin interface: create a new page and add an application in the advanced settings. type(context).name returns 'dict' |
Thanks, I think the problem is because a dict was used somewhere instead of a Django Context which is a stack of dicts. Please can you give an apphook code triggering your problem?
Of course, no application in the menu! |
I'm confronting this bug exactly as mentionned in this issue details from "steps to reproduce". It does happen on detail views from application "django-blog-zinnia". Very strange since i'm using zinnia and snippet since a long time but never faced this bug. But recently i upgraded my stack to the last Django and Django-cms and now it happen. I digged into Zinnia code and i didn't see any usage about Environment:
|
description
snippet_fragment template tag overwrites 'object' value in templates and then breaks other django application templates.
steps to reproduce
below a trivial fix, maybe not the best one.
The text was updated successfully, but these errors were encountered: