Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
11
apps/newsletter/models.py
Normal file
11
apps/newsletter/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class NewsletterSubscription(models.Model):
|
||||
email = models.EmailField(unique=True)
|
||||
confirmed = models.BooleanField(default=False)
|
||||
source = models.CharField(max_length=100, default="unknown")
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.email
|
||||
Reference in New Issue
Block a user