summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-02-16 22:28:22 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2018-04-08 12:51:19 +0200
commitcbb242f6bbe64bd69f597ccaca252f32d177cbf1 (patch)
tree62e4e063d74fe7b3f52f396c788339f0aa80e4ad /todolists
parentc976d7eb3004e5c15ddb1929f22fa3532f11b9e9 (diff)
downloadarchweb-cbb242f6bbe64bd69f597ccaca252f32d177cbf1.tar.gz
archweb-cbb242f6bbe64bd69f597ccaca252f32d177cbf1.zip
treewide: context must be a dict rather than Context
Passing Context has been removed in Django 11, a dict should rather be passed.
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 75c3d2d6..40a767d1 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -9,7 +9,7 @@ from django.shortcuts import (get_list_or_404, get_object_or_404,
from django.db import transaction
from django.views.decorators.cache import never_cache
from django.views.generic import DeleteView, ListView
-from django.template import Context, loader
+from django.template import loader
from django.utils.timezone import now
from main.models import Package, Repo
@@ -225,10 +225,10 @@ def send_todolist_emails(todo_list, new_packages):
for maint, packages in maint_packages.iteritems():
packages = sorted(packages, key=attrgetter('pkgname', 'arch'))
- ctx = Context({
+ ctx = {
'todo_packages': packages,
'todolist': todo_list,
- })
+ }
template = loader.get_template('todolists/email_notification.txt')
send_mail('Packages added to todo list \'%s\'' % todo_list.name,
template.render(ctx),