On Sat, 2008-11-29 at 21:26 +0530, Mahesh Vaidya wrote:
> Hi,
> I want use id as uid or something like; itd start from 1; staring user
> id from "1 - one" is not that good; can I initialize starting value
> for AutoField ?

If you want the value to be a unique id and it is only generated by this
field, then starting from 1 is no problem at all -- there will never be
a conflict. If the value could also be provided from other sources and
they must all be unique, then you can't use an AutoField, because you
aren't in control of the value. Just use a normal IntegerField and fill
it in with whatever unique value you like.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to