X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/df318ffde3168c6166a2ef133624b78c4b67aca0..13c39d1bc3d9f0634c8d9cfe3ea151c08e3ba54a:/sommitrealweird/bpcms/views.py?ds=sidebyside diff --git a/sommitrealweird/bpcms/views.py b/sommitrealweird/bpcms/views.py index bde19cc..fd23428 100644 --- a/sommitrealweird/bpcms/views.py +++ b/sommitrealweird/bpcms/views.py @@ -35,7 +35,7 @@ def document_view(request, slug=None, folders=None): except: try: folder = Folder.objects.get(slug__exact=slug, parent__exact=folder) - if not request.user.isauthenticated(): + if not request.user.is_authenticated(): doc = Document.objects.get(slug__exact='index', islive__exact=True, folder__exact=folder) else: doc = Document.objects.get(slug__exact='index', folder__exact=folder)