[fix]
This commit is contained in:
1 parent
d0523ba3a9
commit
802c28ebb6
4 files changed
+8
-9
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user