sdi/forms.py
branchanoop
changeset 71 c736873f35cb
parent 68 b0e630caa6e6
child 72 3673ed3ca27c
equal deleted inserted replaced
70:58cafee2ee89 71:c736873f35cb
   146         emails = self.cleaned_data['emails']
   146         emails = self.cleaned_data['emails']
   147 
   147 
   148         to_emails = [csv_list.split(',') for csv_list in emails.split()]
   148         to_emails = [csv_list.split(',') for csv_list in emails.split()]
   149         return to_emails
   149         return to_emails
   150 
   150 
   151 class LoginForm(forms.form):
   151 class LoginForm(forms.Form):
   152     """ login form.
   152     """ login form.
   153     """
   153     """
   154 
   154 
   155     username = forms.CharField()
   155     username = forms.CharField()
   156     password = forms.CharField(widget=forms.PasswordInput)
   156     password = forms.CharField(widget=forms.PasswordInput)