from django.db import models
+from django.utils.translation import gettext_lazy as _
from cas_provider.signals import cas_collect_custom_attributes
-class Service(models.Model):
- ordering = models.IntegerField()
- name = models.CharField(max_length=255)
- url = models.URLField()
- image = models.ImageField(upload_to='accounts/service/')
+class OnboardingEmail(models.Model):
+ subject = models.CharField(_("subject"), max_length=255)
+ body = models.TextField(
+ _("body"),
+ help_text=_("Available placeholders: {username}, {password}, {first_name}, {last_name}")
+ )
class Meta:
- ordering = ('ordering', )
+ verbose_name = _("onboarding email template")
+ verbose_name_plural = _("onboarding email templates")
def user_attributes(sender, user, **kwargs):