summaryrefslogtreecommitdiff
path: root/app/lttr/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/forms.py')
-rw-r--r--app/lttr/forms.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/lttr/forms.py b/app/lttr/forms.py
index e3fb272..5718d6e 100644
--- a/app/lttr/forms.py
+++ b/app/lttr/forms.py
@@ -2,7 +2,7 @@ from django import forms
from django.forms.utils import ValidationError
from .validators import validate_email_nouser
-from .models import Subscriber
+from .models import Subscriber, PostcardSubscriber
class SubscribeForm(forms.ModelForm):
@@ -98,3 +98,10 @@ class UpdateForm(NewsletterForm):
user_activation_code = forms.CharField(
label=("Activation code"), max_length=40
)
+
+
+class PostcardForm(forms.ModelForm):
+
+ class Meta:
+ model = PostcardSubscriber
+ fields = ['name', 'address']