Disallow spaces in attachment slugs

This commit is contained in:
2018-04-03 12:24:42 +02:00
parent 14b31174dc
commit a86920fc73
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ _file_embedded_schema = {
}
}
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_ ]+'
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_]+'
attachments_embedded_schema = {
'type': 'dict',