Commit 99ab1a44 authored by fred's avatar fred
Browse files

limit subscribe form to the email field

parent 52f563bc
......@@ -5,7 +5,7 @@ from .models import Subscriber, Newsletter
class SubscribeForm(forms.ModelForm):
class Meta:
model = Subscriber
exclude = ('inscription_date', 'is_validated', 'is_registered', 'password')
fields = ('email',)
class NewsletterForm(forms.ModelForm):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment