Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
django-panik-newsletter
Commits
99ab1a44
Commit
99ab1a44
authored
Jan 31, 2021
by
fred
Browse files
limit subscribe form to the email field
parent
52f563bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
newsletter/forms.py
View file @
99ab1a44
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment