mirror of
https://github.com/quantum5/qlinks.git
synced 2025-04-24 10:41:57 -04:00
Allow more characters in URLs
This commit is contained in:
parent
2d690db82c
commit
5e2c7e029f
|
@ -2,7 +2,7 @@ from django.core.validators import RegexValidator
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.forms import SlugField
|
from django.forms import SlugField
|
||||||
|
|
||||||
URL_SLUG_VALIDATOR = RegexValidator(r'^[-a-zA-Z0-9_/]+\Z')
|
URL_SLUG_VALIDATOR = RegexValidator(r'^[-a-zA-Z0-9_/._~!$^\'()*+,;=:@]+\Z')
|
||||||
|
|
||||||
|
|
||||||
class ShortURLFormField(SlugField):
|
class ShortURLFormField(SlugField):
|
||||||
|
|
Loading…
Reference in a new issue