Skip to content
Snippets Groups Projects
Commit 1c6a649a authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

update for valid non-subdomains

parent a4535bfb
Branches
No related tags found
No related merge requests found
Pipeline #12397 passed
......@@ -20,7 +20,7 @@ from users.models import User
class SubdomainValidatedURLField(models.URLField):
validators = [
URLValidator(schemes=("https",)),
RegexValidator(regex=r"https:\/\/.*\.pirati.cz(\/|$).*"),
RegexValidator(regex=r"https:\/\/(.*\.|)pirati.cz(\/|$).*"),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment