my model :
class Problem(models.Model): ... prob_id = models.IntegerField(null=False, unique=True) #autofield?, (unique=True) ... def __str__(self