You can't do it in Django directly. If you need to do it you have to go to your DB and use whatever functionality it supports to set an auto id start point.
On Thursday, June 19, 2014 12:14:17 PM UTC-5, Anurag Baidyanath wrote: > > I have a field in my models.py file as follows > > ticket_id = models.AutoField(primary_key=True) > > The value for the ticket_id column starts at 1. say i wanted it to start > from some value (say 989) . how do i accomplish this using django? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/85c60deb-3332-4d91-af2d-3c098c7ea2d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.