How do I explicitly specify language of email I want to send?
问题 I have a custom user model that have a preferred_language field. I want all the emails (activation and password reset) to be sent translated to the language that user specified in profile. class CustomUser(AbstractBaseUser, PermissionsMixin): ... LANGUAGE_CHOICES = ( (1, "English"), (2, "Русский") ) preferred_language = models.PositiveSmallIntegerField(choices=LANGUAGE_CHOICES, default=2, verbose_name=_("Preferred language")) I thought about setting custom email class but didn't saw in navive