Re: Getting Django admin to display new autoincremented values in primary key model forms

2011-05-06 Thread wilbur
With my current setup, the autoincrement variable set in postgresql is visible in the Django admin as "Sample_ID", with an empty form field. The user can't possibly know what the next value in the sequence should be, so I'm wondering how to deal with the field, as it is Not NULL, and any attempt to

Re: Getting Django admin to display new autoincremented values in primary key model forms

2011-05-04 Thread pjrhar...@gmail.com
Hi, See this ticket for details on the error you are seeing: http://south.aeracode.org/ticket/407 If I understand correctly, it sounds like you're asking for something that isn't possible anyway. The id isn't known until the item is inserted into the database, because the database assigns the i

Getting Django admin to display new autoincremented values in primary key model forms

2011-05-04 Thread wilbur
I am using Django 1.2.4 with a Postgresql 8.4 backend. Before creating my models in Django, I began with a existing Postgresql database with tables for which I had defined integer primary keys that used an autoincrementing sequence on table inserts. When I created my Django models, I defined the pr