From f0cf3b3a687bb14bd91ab8080890193aa4d7dadb Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 21 Mar 2018 16:14:07 +1100 Subject: [PATCH] Patch a few small deprecated operations so that the site works under Django 2.0 as well --- entries/migrations/0011_auto_20171120_1108.py | 1 + lemoncurry/templatetags/lemoncurry_tags.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/entries/migrations/0011_auto_20171120_1108.py b/entries/migrations/0011_auto_20171120_1108.py index 6e0020f..296cacb 100644 --- a/entries/migrations/0011_auto_20171120_1108.py +++ b/entries/migrations/0011_auto_20171120_1108.py @@ -6,6 +6,7 @@ from django.db import migrations class Migration(migrations.Migration): + atomic = False dependencies = [ ('entries', '0010_entry_tags'), diff --git a/lemoncurry/templatetags/lemoncurry_tags.py b/lemoncurry/templatetags/lemoncurry_tags.py index da17054..b5cacd2 100644 --- a/lemoncurry/templatetags/lemoncurry_tags.py +++ b/lemoncurry/templatetags/lemoncurry_tags.py @@ -52,7 +52,7 @@ def nav_left(request): @register.inclusion_tag('lemoncurry/tags/nav.html') def nav_right(request): - if request.user.is_authenticated(): + if request.user.is_authenticated: items = ( MenuItem(label='admin', icon='fas fa-cog', url='admin:index'), MenuItem(label='log out', icon='fas fa-sign-out-alt', url='lemonauth:logout'),