Skip to content

Commit

Permalink
Reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Romulus10 committed Nov 4, 2021
1 parent 36967cb commit 5077e1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/edit_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ def new_diagnosis_view(request, patient_id=None, encounter_id=None):
diagnosis_form = PatientDiagnosisForm()
if request.method == "POST":
if len(d) > 0:
diagnosis_form = PatientDiagnosisForm(
request.POST, instance=d[0]
)
diagnosis_form = PatientDiagnosisForm(request.POST, instance=d[0])
else:
diagnosis_form = PatientDiagnosisForm(request.POST)
if diagnosis_form.is_valid():
Expand Down

0 comments on commit 5077e1e

Please sign in to comment.