FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 83ed7514 authored by Dr Catherine Pitt's avatar Dr Catherine Pitt
Browse files

Correct field names in main form

These have to match the database, and a couple did not.
parent ac014d89
No related branches found
Tags v5
No related merge requests found
......@@ -90,11 +90,11 @@ class BasicRegistrationForm(FlaskForm):
home_address = TextAreaField('Home address',
[validators.InputRequired(),validators.Length(min=10)],
render_kw={'required' : use_html_required_attr})
home_phone = TelField('Home phone number',
[EitherOr('mobile_phone',
home_phone_number = TelField('Home phone number',
[EitherOr('mobile_number',
message='One of home phone number and mobile number must be filled in')])
mobile_phone = TelField('Mobile phone number',
[EitherOr('home_phone',
mobile_number = TelField('Mobile phone number',
[EitherOr('home_phone_number',
message='One of home phone number and mobile number must be filled in')])
email = EmailField('Email Address',
[validators.InputRequired(),validators.Email()],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment