update predavanja

This commit is contained in:
msinkec
2021-06-11 13:22:15 +02:00
parent d2e3fd1117
commit 540f54dd06
2 changed files with 7 additions and 7 deletions

View File

@@ -122,10 +122,10 @@ class UploadHandlerPredavanja(UploadHandler):
or not keywords:
return 'Izpolnite vsa obvezna polja.'
for keyword in keywords.split(','):
keyword = keyword.strip()
if keyword.isspace() or not keyword.replace(' ', '').isalpha():
return 'Ključna beseda "{}" ni pravilnega formata.'.format(keyword)
#for keyword in keywords.split(','):
# keyword = keyword.strip()
# if keyword.isspace() or not keyword.replace(' ', '').isalpha():
# return 'Ključna beseda "{}" ni pravilnega formata.'.format(keyword)
if not re.search(REGEX_EMAIL, email):
return 'Email napačnega formata.'