Add desbanear_usuario task to send unban email notifications
This commit is contained in:
@@ -29,6 +29,17 @@ def banear_usuario(email_usuario: str):
|
|||||||
)
|
)
|
||||||
|
|
||||||
send_hemail(email_usuario, "Cuenta Bloqueada", html_content, "Tu cuenta ha sido bloqueada...")
|
send_hemail(email_usuario, "Cuenta Bloqueada", html_content, "Tu cuenta ha sido bloqueada...")
|
||||||
|
|
||||||
|
@shared_task
|
||||||
|
def desbanear_usuario(email_usuario: str):
|
||||||
|
html_content = render_to_string(
|
||||||
|
'emails/unban.html',
|
||||||
|
{},
|
||||||
|
using='jinja2'
|
||||||
|
)
|
||||||
|
|
||||||
|
send_hemail(email_usuario, "Cuenta Desbloqueada", html_content, "Tu cuenta ha sido desbloqueada...")
|
||||||
|
|
||||||
@shared_task
|
@shared_task
|
||||||
def enviar_correo_confirmacion(id: int):
|
def enviar_correo_confirmacion(id: int):
|
||||||
usuario = User.objects.get(id=id)
|
usuario = User.objects.get(id=id)
|
||||||
|
|||||||
Reference in New Issue
Block a user