Cleaned up the templates

This commit is contained in:
xemeds
2020-08-19 16:31:22 +03:00
parent 789afe8554
commit 59cbba9d03
7 changed files with 93 additions and 104 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ def validate_URL(form, field):
# If the url contains the websites domain
if WEBSITE_DOMAIN in field.data.lower():
# Raise a ValidationError
raise ValidationError("Yeah, that's definitely a valid URL")
raise ValidationError("Invalid URL")
# If the URL does not start with http:// and https://
if not(field.data.lower().startswith("http://")) and not(field.data.lower().startswith("https://")):