code: def clean_int(x) -> int:
      
      try:
          return int(x)
      except ValueError:
          raise forms.ValidationError(
              "Cannot convert to integer: {}".format(repr(x)))
docs: Returns its parameter as an integer, or raises
      ``django.forms.ValidationError``.