Patch a few small deprecated operations so that the site works under Django 2.0 as well
This commit is contained in:
parent
169f0687cb
commit
f0cf3b3a68
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('entries', '0010_entry_tags'),
|
('entries', '0010_entry_tags'),
|
||||||
|
|
|
@ -52,7 +52,7 @@ def nav_left(request):
|
||||||
|
|
||||||
@register.inclusion_tag('lemoncurry/tags/nav.html')
|
@register.inclusion_tag('lemoncurry/tags/nav.html')
|
||||||
def nav_right(request):
|
def nav_right(request):
|
||||||
if request.user.is_authenticated():
|
if request.user.is_authenticated:
|
||||||
items = (
|
items = (
|
||||||
MenuItem(label='admin', icon='fas fa-cog', url='admin:index'),
|
MenuItem(label='admin', icon='fas fa-cog', url='admin:index'),
|
||||||
MenuItem(label='log out', icon='fas fa-sign-out-alt', url='lemonauth:logout'),
|
MenuItem(label='log out', icon='fas fa-sign-out-alt', url='lemonauth:logout'),
|
||||||
|
|
Loading…
Reference in a new issue