Skip to content

Commit

Permalink
Merge f4f0ee7 into d19a54a
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed Dec 15, 2015
2 parents d19a54a + f4f0ee7 commit 486b8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/admin/pageadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def resolve(self, request):
except:
obj = None
if obj:
if not request.toolbar or not request.toolbar.edit_mode:
if not getattr(request, 'toolbar', False) or not getattr(request.toolbar, 'edit_mode', False):
if isinstance(obj, Page):
if obj.get_public_object():
url = obj.get_public_object().get_absolute_url()
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,8 @@ CMS_TOOLBAR_HIDE
default
``False``

If True, the toolbar is hidden in the pages out django CMS.
If ``True``, the toolbar is hidden, even on CMS pages.

To determine the internal url of django cms, you need to assign CMS_APP_NAME to use when you include ``'cms.urls'``

Example::
Expand Down

0 comments on commit 486b8ab

Please sign in to comment.