forms.py 362 Bytes
Newer Older
1
from django import forms
2
from .models import Subscriber, Newsletter
3

fred's avatar
fred committed
4 5 6 7
class SubscribeForm(forms.ModelForm):
    class Meta:
        model = Subscriber
        exclude = ('inscription_date', 'is_validated', 'is_registered', 'password')
8 9 10 11 12 13


class NewsletterForm(forms.ModelForm):
    class Meta:
        model = Newsletter
        exclude = ('expedition_datetime', )