12 lines
296 B
Python
12 lines
296 B
Python
from django.db import models
|
|
|
|
|
|
class GuestEmail(models.Model):
|
|
email = models.EmailField()
|
|
active = models.BooleanField(default=True)
|
|
time = models.DateTimeField(auto_now_add=True)
|
|
update = models.DateTimeField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return self.email
|