Patch a few small deprecated operations so that the site works under Django 2.0 as well

This commit is contained in:
Danielle McLean 2018-03-21 16:14:07 +11:00
parent 169f0687cb
commit f0cf3b3a68
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 2 additions and 1 deletions

View file

@ -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'),

View file

@ -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'),