- unique_together = [('bundle', 'patch'), ('bundle', 'order')]
-
-class UserPersonConfirmation(models.Model):
- user = models.ForeignKey(User)
+ unique_together = [('bundle', 'patch')]
+ ordering = ['order']
+
+class EmailConfirmation(models.Model):
+ validity = datetime.timedelta(days = settings.CONFIRMATION_VALIDITY_DAYS)
+ type = models.CharField(max_length = 20, choices = [
+ ('userperson', 'User-Person association'),
+ ('registration', 'Registration'),
+ ('optout', 'Email opt-out'),
+ ])