fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some unused stuff.
[wolnelektury.git]
/
src
/
wolnelektury
/
utils.py
diff --git
a/src/wolnelektury/utils.py
b/src/wolnelektury/utils.py
index
2657a55
..
142d33f
100644
(file)
--- a/
src/wolnelektury/utils.py
+++ b/
src/wolnelektury/utils.py
@@
-15,7
+15,6
@@
from inspect import getargspec
import re
from django.core.mail import send_mail
from django.http import HttpResponse
import re
from django.core.mail import send_mail
from django.http import HttpResponse
-from django.template import RequestContext
from django.template.loader import render_to_string
from django.utils import timezone
from django.conf import settings
from django.template.loader import render_to_string
from django.utils import timezone
from django.conf import settings
@@
-101,7
+100,7
@@
def ajax(login_required=False, method=None, template=None, permission_required=N
try:
res = fun(request, **kwargs)
if res and template:
try:
res = fun(request, **kwargs)
if res and template:
- res = {'html': render_to_string(template, res,
RequestContext(request)
)}
+ res = {'html': render_to_string(template, res,
request=request
)}
except AjaxError as e:
res = {'result': e.args[0]}
if 'result' not in res:
except AjaxError as e:
res = {'result': e.args[0]}
if 'result' not in res: