rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Visit forms not properly re-rendering after resubmission #124

Open dc2007git opened 2 weeks ago

dc2007git commented 2 weeks ago

[After dev team discussion]

For a visit that a user would like to update, it seems that resubmitting the form clears some of the values stored in the form. It is possible that this is due to tags not having 'value' attributes

dc2007git commented 4 days ago

Note - after testing with @anchit-chandran it seems like the Visit form has this property only when all errors are not resolved. I.e. , if a form has errors and you resolve all errors, then submit, there are no issues and the updated visit saves. But, if you do not resolve all errors in a visit then the visit will clear its data from the tags of type date and select for some reason