This commit is contained in:
2022-01-27 20:59:32 +11:00
parent 014b17e507
commit 51661aaa71
3 changed files with 151 additions and 0 deletions

6
books/converters.py Normal file
View File

@@ -0,0 +1,6 @@
class RealIntConverter:
regex='[0-9]+'
def to_python(self,value):
return int(value)
def to_url(self,value):
return str(value)