rakkapy/books/converters.py

6 lines
132 B
Python
Raw Normal View History

2022-01-27 20:59:32 +11:00
class RealIntConverter:
regex='[0-9]+'
def to_python(self,value):
return int(value)
def to_url(self,value):
return str(value)