Suppose I have a model:
class SomeModel(models.Model): id = models.AutoField(primary_key=True) a = models.CharField(max_length=10) b = models.Cha
Set editable to False and default to your default value.
editable
False
default
http://docs.djangoproject.com/en/stable/ref/models/fields/#editable
b = models.CharField(max_length=7, default='0000000', editable=False)
Also, your id field is unnecessary. Django will add it automatically.
id