.
This commit is contained in:
+1
-1
@@ -737,7 +737,7 @@ def accounts_bulk_create_check(request):
|
||||
errors.append("No email provided")
|
||||
|
||||
if User.objects.filter(username=user["email"]).exists():
|
||||
info.append("User already exists")
|
||||
errors.append("User already exists")
|
||||
|
||||
if not UserGrades.objects.filter(name=user["grade"]):
|
||||
errors.append("Invalid grade")
|
||||
|
||||
Reference in New Issue
Block a user