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)):
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)