I need another sequence field in model this fild will start from 100000 and need to be incremented but django AutoField need to be primary_key, any way to do a sequence without be a PK ?
thnkx.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
are these going to be unique as well? in what way are they different from the pk field?
if all you need is for them to start at 100000, could you get away with using
pk + 100000?