Skip to content
Snippets Groups Projects
Commit 901c1bb0 authored by Anton's avatar Anton
Browse files

Lab 4: fix string error

parent 92a1c6f3
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ def is_signup_form_valid(data):
return False
for field in data:
if not (len(data[field].strip())):
if not (len(str(data[field]).strip())):
# string is empty
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment