Ben Sturmfels
789d0c8c84
This change removes the unused `ContactEntry` model and the `subscribe` view and replaces it with an `Unsubscription` model and an `unsubscribe` view. It works similarly, but is intended to be used with the `list-unsubscribe` and `list-unsubscribe-post` headers.
9 lines
213 B
Python
9 lines
213 B
Python
from django.db import models
|
|
|
|
|
|
class Unsubscription(models.Model):
|
|
created = models.DateTimeField(auto_now_add=True, blank=True)
|
|
email = models.EmailField()
|
|
|
|
class Meta:
|
|
ordering = ['created']
|