fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/apps/mailing/emails.py

17 lines
355 B
Python

# coding: utf-8
from django.utils.translation import ugettext_lazy as _
from .models import Email
class RegistrationEmail(Email):
template = 'mailing/registration.html'
subject = _('Bienvenido a Shelfzilla')
# Context requires:
# - user: <User model>
def prepare(self):
self.recipients.append(self.context['user'].email)