update predavanja
This commit is contained in:
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user