481cb85a3f33cc3230a9002a0c31d2d5c90e339d
[wolnelektury.git] / src / newsletter / models.py
1 # -*- coding: utf-8 -*-
2 from django.db.models import Model, EmailField, DateTimeField, BooleanField
3 from django.utils.translation import ugettext_lazy as _
4
5
6 class Subscription(Model):
7     email = EmailField(verbose_name=_('email address'))
8     active = BooleanField(default=True)
9     created_at = DateTimeField(auto_now_add=True)
10     last_modified = DateTimeField(auto_now=True)