fix tests

This commit is contained in:
Kuroshini 2019-10-11 13:46:08 +03:00
parent 71528d8a28
commit 114d159449

View File

@ -73,12 +73,12 @@ class PasswordResetConfirmSerializer(serializers.ModelSerializer):
instance.save() instance.save()
if settings.USE_CELERY: if settings.USE_CELERY:
tasks.send_reset_password_confirm.delay( tasks.send_reset_password_confirm.delay(
user_id=instance, user=instance,
country_code=self.context.get('request').country_code, country_code=self.context.get('request').country_code,
) )
else: else:
tasks.send_reset_password_confirm( tasks.send_reset_password_confirm(
user_id=instance, user=instance,
country_code=self.context.get('request').country_code, country_code=self.context.get('request').country_code,
) )
return instance return instance