You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
728 B

10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
  1. from django import forms
  2. class LowercaseEmailField(forms.EmailField):
  3. def clean(self, value):
  4. value = super(LowercaseEmailField, self).clean(value)
  5. return value.lower()
  6. class EmailPasswordForm(forms.Form):
  7. email = LowercaseEmailField()
  8. password = forms.CharField(required=False)
  9. class ReportSettingsForm(forms.Form):
  10. reports_allowed = forms.BooleanField(required=False)
  11. class SetPasswordForm(forms.Form):
  12. password = forms.CharField()
  13. class InviteTeamMemberForm(forms.Form):
  14. email = LowercaseEmailField()
  15. class RemoveTeamMemberForm(forms.Form):
  16. email = LowercaseEmailField()
  17. class TeamNameForm(forms.Form):
  18. team_name = forms.CharField(max_length=200, required=True)