For Django versions < 1.6 it should suffice to use:

    class NumberInput(TextInput):
        input_type = 'number'