Re: [SOLVED] primary key auto increment with PostgreSQL and non Django standard column name

2018-08-06 Thread Aditya Sangam
Naoko I ma facing the problem of updating primary key automatically in django with postgresql database Could you please suggest what need to be done. Do we need to create a sequence for the table to achieve this. Hoping for your reply On Sunday, May 29, 2011 at 8:32:45 PM UTC+5:30, Nao

[SOLVED] primary key auto increment with PostgreSQL and non Django standard column name

2011-05-29 Thread Naoko Reeves
I was missing this from schema: ALTER SEQUENCE tablename_colname_seq OWNED BY tablename.colname; Now everything is happy. Thank you! On 5/28/11 8:32 AM, "Naoko Reeves" wrote: > Malcolm, Thank you for your advice! > I changed my model as follows: > poll_key = models.AutoField(primary_key=Tr