Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ComplainForm(forms.ModelForm):
- class Meta:
- model = complain
- fields = ['name', 'email', 'message',]
- def clean_email(self):
- email = self.cleaned_data.get('email')
- return email
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement