You need 2 tuples. Use the built-in zip function for the same 2 tuples
from django import forms class SignUpForm(forms.Form): birth_day = models.IntegerField(choices=list(zip(range(1, 32), range(1, 32))), unique=True)
Remember (1.32) will create from 1 to 31!
source share