Asset search and URLs convert lower to uppercase

Closes #440
This commit is contained in:
2021-10-09 10:59:12 +01:00
parent d3391d9e3e
commit 9ee8cd0f8b
3 changed files with 18 additions and 8 deletions

8
assets/converters.py Normal file
View File

@@ -0,0 +1,8 @@
class AssetIDConverter: # Forces lowercase to uppercase
regex = '[^/]+'
def to_python(self, value):
return value.upper()
def to_url(self, value):
return value.upper()