You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
Getting an AttributeError when trying to view published articles and not logged in.
Django Version: 1.8.18
Python Version: 3.5.2
Aldryn Newsblog Version 1.3.2
Traceback shows it failing in views.py for:
class EditModeMixin(object):
"""
A mixin which sets the property 'edit_mode' with the truth value for
whether a user is logged-into the CMS and is in edit-mode.
"""
edit_mode = False
def dispatch(self, request, *args, **kwargs):
self.edit_mode = (
self.request.toolbar and self.request.toolbar.edit_mode)
return super(EditModeMixin, self).dispatch(request, *args, **kwargs)
I was able to patch mine by adding a check for the 'toolbar' attribute.
def dispatch(self, request, *args, **kwargs):
if hasattr(request, 'toolbar'):
self.edit_mode = (
self.request.toolbar and self.request.toolbar.edit_mode)
The text was updated successfully, but these errors were encountered:
Getting an AttributeError when trying to view published articles and not logged in.
Traceback shows it failing in views.py for:
I was able to patch mine by adding a check for the 'toolbar' attribute.
The text was updated successfully, but these errors were encountered: