Skip to content

Commit

Permalink
fixed issue #237. String field filled with number, gives error
Browse files Browse the repository at this point in the history
  • Loading branch information
luissian authored and saramonzon committed Oct 5, 2023
1 parent 8d071b4 commit bc75ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/utils/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def save_recorded_samples(samples_data, req_user, app_name):
sample["user"] = req_user
sample["app_name"] = app_name

sample["sample_code_id"] = str(req_user + "_" + sample["sample_name"])
sample["sample_code_id"] = req_user + "_" + str(sample["sample_name"])

# Set unique ID
if not core.models.Samples.objects.exclude(
Expand Down
2 changes: 1 addition & 1 deletion wetlab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,7 @@ def record_samples(request):
return render(
request,
"wetlab/record_sample.html",
{"error_message": error_message},
{"error_message": error_message, "fields_info": fields_info},
)

# If everything goes right, check if we need to add project data
Expand Down

0 comments on commit bc75ab9

Please sign in to comment.