mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Make it possible to pre-select a mailinglist in the subcription form
This is done by putting #<id> at the end of the URL.
This commit is contained in:
@ -3,6 +3,8 @@ from django import forms
|
||||
from models import MailingList
|
||||
|
||||
class SubscribeForm(forms.Form):
|
||||
jquery = True
|
||||
|
||||
email = forms.EmailField(max_length=100,required=True,label="Email address")
|
||||
action = forms.ChoiceField(required=True, choices=(('subscribe','Subscribe'),('unsubscribe','Unsubscribe')))
|
||||
receive = forms.BooleanField(required=False, label="Receive mail", initial=True)
|
||||
|
Reference in New Issue
Block a user