Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize form data cleaning #11

Open
bepetersn opened this issue Nov 24, 2013 · 0 comments
Open

Customize form data cleaning #11

bepetersn opened this issue Nov 24, 2013 · 0 comments

Comments

@bepetersn
Copy link
Member

This can be done by overriding the clean methods on the Form classes that we have defined. Below are a few ideas.

EventForm:

  • Check if sessions invalid times (i.e. outside the time limits of the event that they associate with)

AddVolunteerForm:

  • Check that user's name is not empty
  • Check that username hasn't been taken

LoginForm:

  • Check if user has an associated volunteer (if not you're a superuser, and you shouldn't use vol. login)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant