K-Fêt urlconf file + converter

This commit is contained in:
Ludovic Stephan 2019-04-12 17:06:53 +02:00
parent 019acb90ac
commit 271732f40d
3 changed files with 116 additions and 114 deletions

8
kfet/converters.py Normal file
View file

@ -0,0 +1,8 @@
class TrigrammeConverter:
regex = ".{3}"
def to_python(self, value):
return str(value)
def to_url(self, value):
return str(value)