Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
arielfayol37 committed Nov 13, 2023
1 parent a098ef0 commit 3165bd6
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deimos/views.py
Original file line number Diff line number Diff line change
@@ -582,8 +582,8 @@ def register(request):
username = request.POST["username"].strip()
email = request.POST["email"].strip()
password = request.POST["password"].strip()
first_name = request.POST["first_name"].strip()
last_name = request.POST["last_name"].strip()
first_name = request.POST["first_name"].strip().title()
last_name = request.POST["last_name"].strip().title()

try:
stud = Student.objects.get(username=username)
6 changes: 3 additions & 3 deletions phobos/views.py
Original file line number Diff line number Diff line change
@@ -148,9 +148,9 @@ def register(request):
username = request.POST["username"].strip()
email = request.POST["email"].strip()
password = request.POST["password"].strip()
first_name = request.POST["first_name"].strip()
last_name = request.POST["last_name"].strip()
department = request.POST["department"].strip()
first_name = request.POST["first_name"].strip().title()
last_name = request.POST["last_name"].strip().title()
department = request.POST["department"].strip().title()

try:
prof = Professor.objects.get(username=username)

0 comments on commit 3165bd6

Please sign in to comment.