]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/forms.py
Add email opt-out system
[patchwork] / apps / patchwork / forms.py
index f83c27ae75c3e45fc3298e844cdbc0c75a691af8..d5e51a2c8b9dfcc52954b13e95bb3d774f0b03c2 100644 (file)
@@ -227,5 +227,8 @@ class MultiplePatchForm(forms.Form):
             instance.save()
         return instance
 
-class UserPersonLinkForm(forms.Form):
+class EmailForm(forms.Form):
     email = forms.EmailField(max_length = 200)
+
+UserPersonLinkForm = EmailForm
+OptinoutRequestForm = EmailForm