Merge branch 'fix_push' into 'dev'

fix

See merge request !124
feature/fix_accout_not_found
Andrey 8 years ago
commit 958e06a084
  1. 8
      access/views.py

@ -318,12 +318,12 @@ class ManagementPassword(generics.GenericAPIView):
user.set_password(password) user.set_password(password)
user.save() user.save()
logger.info(f'set password: {password} to the ' logger.info('''set password: %s to the
f'student with email: {user.email}') student with email: %s''' % (password, user.email))
EmailMessage( EmailMessage(
subject='Установлен новый пароль', subject='Установлен новый пароль',
body=f'Ваш новый пароль {password} ' body='''Ваш новый пароль %s
f'(в последствии вы сможите сменить его в личном кабинете).', (в последствии вы сможите сменить его в личном кабинете).''' % password,
from_email='robo@skillbox.ru', from_email='robo@skillbox.ru',
to=[user.email], to=[user.email],
bcc=[request.user.email], bcc=[request.user.email],

Loading…
Cancel
Save