mails.views module¶
-
class
mails.views.MailViewBase(*args, **kwargs)[source]¶ Bases:
objectSend a templated email after being edited by user.
-
form_class= None¶
-
mail_code= None¶
-
mail_config= {}¶
-
mail_variables= {}¶
-
fail_silently= True¶
-
-
class
mails.views.MailFormView(*args, **kwargs)[source]¶ Bases:
mails.views.MailViewBase,django.views.generic.edit.UpdateViewMailUpdateView acts as a base class-based form view, but will intercept the POST request of the original form. It’ll render the email edit form and save/send both after validation.
-
class
mails.views.MailView(*args, **kwargs)[source]¶ Bases:
mails.views.MailViewBase,django.views.generic.edit.UpdateView-
form_class¶ alias of
mails.forms.EmailForm
-
template_name= 'mails/mail_form.html'¶
-
-
class
mails.views.MailEditorSubview(request, mail_code, context=None, header_template=None, **kwargs)[source]¶ Bases:
objectThis subview works as an interrupter for function based views.
If a FBV is completed, the MailEditingSubview will interrupt the request and provide a form that give the user the possibility to edit a template based email before sending it.
-
template_name= 'mails/mail_form.html'¶
-
-
class
mails.views.MailEditorSubviewHTMX(request, mail_code, context=None, header_template=None, **kwargs)[source]¶ Bases:
mails.views.MailEditorSubview-
template_name= 'mails/_hx_mail_form.html'¶
-