This commit is contained in:
ITQ
2024-04-02 22:09:53 +03:00
parent d0523ba3a9
commit 802c28ebb6
4 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class RegisterUsersFromExcelView(APIView):
)
excel_file = request.FILES.get("excel_file")
if not excel_file:
if excel_file is None:
return Response(
{"error": "No Excel file provided"},
status=status.HTTP_400_BAD_REQUEST,