Move RECIPIENTS_TYPES in the class
@@ -13,13 +13,13 @@ class Subscription(models.Model):
return f"{self.email} subscribed on {self.date_subscribed}"
+class Email(models.Model):
+
RECIPIENTS_TYPES = Choices(
("newsletter", _("Newsletter")),
# ("other", _("Other")),
)
-
-class Email(models.Model):
subject = models.CharField(_("subject"), max_length=100)
heading = models.CharField(_("heading"), max_length=300)
body = models.TextField(_("body"))
