If you create a study that has an intervention and/or an observation, but no sessions, there will always be an error in StudyEndForm ("Trajectory Overview"). This happens because the deception fields get removed aftersuper().__init__() cleans and validates the form. So you'll have an error in a field you can't fill in.
This PR fixes that by cleaning the form again once all fields are set up.
Bonus feature: I got fed up of stashing and popping my fake local email settings every time so I set up a basic debug_settings.py. I've added it to gitignore so put anything in there you'd like.
If you create a study that has an intervention and/or an observation, but no sessions, there will always be an error in
StudyEndForm
("Trajectory Overview"). This happens because the deception fields get removed aftersuper().__init__()
cleans and validates the form. So you'll have an error in a field you can't fill in.This PR fixes that by cleaning the form again once all fields are set up.
Bonus feature: I got fed up of stashing and popping my fake local email settings every time so I set up a basic
debug_settings.py
. I've added it to gitignore so put anything in there you'd like.