DH-IT-Portal-Development / ethics

Ethical Committee web application in Django
http://fetc.hum.uu.nl
MIT License
2 stars 1 forks source link

Fix errors for StudyEndForm #723

Closed miggol closed 4 weeks ago

miggol commented 1 month ago

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 after super().__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.