Skip to content

Commit

Permalink
allow saving cd4 results alone (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
karasinga authored Nov 11, 2024
1 parent 05998f0 commit 101f1dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/labpulse/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def add_cd4_count(request, report_type, pk_lab):
messages.error(request, generate_commodity_error_message("LF TB LAM"))
if cd4_total_remaining == 0:
messages.error(request, generate_commodity_error_message("CD4"))
return render(request, template_name, context)
# return render(request, template_name, context)
else:
crag_total_remaining = None
tb_lam_total_remaining = None
Expand Down Expand Up @@ -846,7 +846,6 @@ def add_cd4_count(request, report_type, pk_lab):
url = reverse('add_cd4_count', kwargs={'report_type': report_type, 'pk_lab': pk_lab})
return redirect(url)
else:
print(f"check form errors::::::::::: {form.errors}")
messages.error(request, f"Record already exists.")
render(request, template_name, context)
return render(request, template_name, context)
Expand Down

0 comments on commit 101f1dc

Please sign in to comment.