Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix: context is not just a dict

git-svn-id: https://django-notification.googlecode.com/svn/trunk@73 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
commit eb4ee927a1e286ca711f4b3e9471a92f6cace2e4 1 parent 798b6f2
Fabian Neumann hellp authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 notification/models.py
5 notification/models.py
View
@@ -3,6 +3,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
+from django.template import Context
from django.template.loader import render_to_string
from django.contrib.sites.models import Site
@@ -202,11 +203,11 @@ def send(recipient, label, extra_context={}, issue_notice=True):
reverse("notification_notices"),
)
- context = {
+ context = Context({
"notice": ugettext(notice_type.display),
"notices_url": notices_url,
"current_site": current_site,
- }
+ })
context.update(extra_context)
recipients = []
Please sign in to comment.
Something went wrong with that request. Please try again.