Skip to content

Commit

Permalink
Fixed issue #289
Browse files Browse the repository at this point in the history
  • Loading branch information
luissian committed Sep 1, 2024
1 parent f208fdc commit bdd3781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wetlab/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ def create_sample_data(request):
not_allowed_sample_names = list(
core.models.Samples.objects.filter(
sample_user__username__iexact=request.user.username
).values_list(Lower("sample_name", flat=True))
).values_list(Lower("sample_name"), flat=True)
)
else:
not_allowed_sample_names = list(
core.models.Samples.objects.values_list(
Lower("sample_name", flat=True)
Lower("sample_name"), flat=True
)
)
# get information it underscore is allowed in sample name
Expand Down

0 comments on commit bdd3781

Please sign in to comment.