There are several fields in Django, not CharField, either in the case of models or modelfield that you use for forms:
In the case of integers, you use: number = models.IntegerField ()
or even
number = models.FloatField () if you want to present the price of a particular product. It is useful in billing programs.
There is also somemore like BigInteger if you want more nos
Detailed link checking: https://docs.djangoproject.com/en/1.11/ref/models/fields/
source share