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 primary keys as IntegerFields with primaryKey
set to true using the same primary key field names as in the pre-
existing database tables.

When I view the individual models/tables in Django admin, the form
fields for the primary key to not automatically display the next value
in the autoincrementing sequence. In attempting to enable this
functionality, I changed the model definition for the primary key to
AutoField instead of IntegerField, and then tried to migrate this
change using South. I received the error:

django.db.utils.DatabaseError: type "serial" does not exist

Not sure what this means, but how do I go about getting the Django
admin to display the next value in the sequence for my model primary
key form fields??

Thanks, Bill

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

Reply via email to