Files @ 789d0c8c843a
Branch filter:

Location: website/conservancy/contacts/models.py

bsturmfels
contacts: Remove ContactEntry and add Unsubscription

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.
1
2
3
4
5
6
7
8
9
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']