Thanks @KenWhitesell I always wish for a single value for SeVsEff to be saved, and I want this to be the default value if the user doesn’t adjust the form. So is the solution to check if the value exists and if it doesnt add it?
The current approach to this (below) isnt working, is this the right track, or another approach entirely?
if not sevseff_formset.has_changed():
sevseff_name = sevseff_formset.save(commit=False)
for sevseff in sevseff_name:
sevseff.patient = patient_instance
sevseff.save()