PonyConf/cfp/converters.py
Élie Bouttier 6cbbb6bd1f django 2.0
2017-12-19 17:05:48 +01:00

9 lines
170 B
Python

class SignedIntConverter:
regex = '[+-]?[0-9]+'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%+d' % value