django integerfield widget code example Example: django integer field example integer = models.IntegerField(blank=True, null=True)