I have a form field called 'units' like this:
units = forms.ChoiceField(choices=[(x, x) for x in range(1, 11)], help_text = 'Units: ')
When I do form.cleaned_data['units']
I get a String instead of an Integer.
How can I change the field to get the Integer?