diff --git a/project5_abduHR/abduHR/views.py b/project5_abduHR/abduHR/views.py index 5d3b58c..1276820 100644 --- a/project5_abduHR/abduHR/views.py +++ b/project5_abduHR/abduHR/views.py @@ -83,7 +83,10 @@ def impemp(request): try: if not re.search(phone_regex,row[3].strip()): return render(request,"abduHR/impemp.html",{ - "message":"Your import file contains invalid phone number(s). Phone numbers must be entered in 10 digit numeric format" + "message":"Your import file contains asdasdinvalid phone number(s). Phone numbers must be entered in 10 digit numeric format" + #testing nah + #testing nah + #testing nah }) if not re.search(email_regex,row[2].strip()): return render(request,"abduHR/impemp.html",{ @@ -94,11 +97,11 @@ def impemp(request): new_employee.save() except IntegrityError: return render(request,"abduHR/impemp.html",{ - "message":"Your import file is remapping a users email to one that is already taken. Please review your email column to make sure you are using unique emails" + "message":"Your import filzzze is remapping a users email to one that is already taken. Please review your email column to make sure you are using unique emails" }) except IndexError: return render(request,"abduHR/update.html",{ - "message":"Your import file contains incomplete data. Please make sure that the file is using columns 1-5 correctly" + "message":"Your import file contains incomplete data. Please make sure that the file is using columns 1-5 correctly test pull" }) return HttpResponseRedirect(reverse("landing")) @@ -118,7 +121,7 @@ def update(request): try: if not re.search(phone_regex,row[3].strip()): return render(request,"abduHR/update.html",{ - "message":"Your import file contains invalid phone number(s). Phone numbers must be entered in 10 digit numeric format" + "message":"Your import file contains invalid phone number(s). no ty Phone numbers must be entered in 10 digit numeric format" }) if not re.search(email_regex,row[2].strip()): return render(request,"abduHR/update.html",{ @@ -134,11 +137,11 @@ def update(request): update_employee.save() except IntegrityError: return render(request,"abduHR/update.html",{ - "message":"Your import file is remapping a users email to one that is already taken. Please review your email column to make sure you are using unique emails" + "message":"Your import file is remapping a users email to one that is already taken. test. Please review your email column to make sure you are using unique emails" }) except IndexError: return render(request,"abduHR/update.html",{ - "message":"Your import file contains incomplete data. Please make sure that the file is using columns 1-5 correctly" + "message":"Your import file contains incomplete data. Please make sure that the file is using columns 1-5 correctly test" }) return HttpResponseRedirect(reverse("landing")) @@ -286,4 +289,4 @@ def register(request): login(request, user) return HttpResponseRedirect(reverse("index")) else: - return render(request, "abduHR/register.html") \ No newline at end of file + return render(request, "abduHR/register.html")