How to make auto increment field in django which starts from 10000
<p>I want to make an auto increment field in Django which starts from bigger value , I found use <strong>Autofield</strong> in models but It starts from 1 .</p>

<pre><code>class University(models.Model):
    id = models.AutoField(primary_key=True)
    university_name = models.CharField(max_length=250, unique=True)
    university_slug = models.SlugField(max_length=250, unique=True)

    def __unicode__(self):
        return self.university_name
</code></pre>

<p>How can do this ? Any helpful suggestion will be appreciated ?</p>

<p>Rather then trying in front end , I suggest you to create sequences in backend (in Database) with starting higher numbers Sequence value.</p>

<p>Hope this will solve your purposes.</p>

python mysql django django-models