fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow empty contact forms.
[wolnelektury.git]
/
src
/
wolnelektury
/
utils.py
diff --git
a/src/wolnelektury/utils.py
b/src/wolnelektury/utils.py
index
44973bb
..
b0b9726
100644
(file)
--- a/
src/wolnelektury/utils.py
+++ b/
src/wolnelektury/utils.py
@@
-94,7
+94,7
@@
def ajax(login_required=False, method=None, template=None, permission_required=N
if fun_kwargs or key in fun_params)
kwargs.update(stringify_keys(request_params))
res = None
if fun_kwargs or key in fun_params)
kwargs.update(stringify_keys(request_params))
res = None
- if login_required and not request.user.is_authenticated
()
:
+ if login_required and not request.user.is_authenticated:
res = {'result': 'logout'}
if (permission_required and
not request.user.has_perm(permission_required)):
res = {'result': 'logout'}
if (permission_required and
not request.user.has_perm(permission_required)):
@@
-118,8
+118,8
@@
def ajax(login_required=False, method=None, template=None, permission_required=N
def send_noreply_mail(subject, message, recipient_list, **kwargs):
send_mail(
def send_noreply_mail(subject, message, recipient_list, **kwargs):
send_mail(
-
u
'[WolneLektury] ' + subject,
- message +
u"\n\n-- \n" + ugettext(u
'Message sent automatically. Please do not reply.'),
+ '[WolneLektury] ' + subject,
+ message +
"\n\n-- \n" + ugettext(
'Message sent automatically. Please do not reply.'),
'no-reply@wolnelektury.pl', recipient_list, **kwargs)
'no-reply@wolnelektury.pl', recipient_list, **kwargs)