-
Notifications
You must be signed in to change notification settings - Fork 153
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
Django 1.11 #970
Django 1.11 #970
Conversation
cadecairos
commented
Jan 18, 2018
- Use the lastest master branch commit of Mezzanine (Django 1.11 support)
- Update Django to 1.11
- Fix custom adminsortable template tags that were passing Context into the render method
- Remove deprecated Middleware
…port) 2. Update Django to 1.11 3. Fix custom adminsortable template tags that were passing Context into the render method 4. Remove deprecated Middleware
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question otherwise lgtm
@@ -44,10 +51,13 @@ def render_object_rep( | |||
obj, | |||
forloop | |||
): | |||
context.update({'object': obj, 'forloop': forloop}) | |||
tmpl = template.loader.get_template( | |||
'{app_name}/adminsortable_objects_custom.html'.format( | |||
app_name=context.get('opts').app_label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trick was to pass opts
along from context in every level of the template render, since it only accepts a plain dict.
This reverts commit de4969e.