Hi,

I'd like to use a UUID as my primary key in a PostgreSQL-backed Django 
database.  As with a serial primary key, I'd like the database rather than 
Django to supply the initial value of the primary key; the primary key field in 
the DB is declared as DEFAULT uuid_generate_v4().  It *almost* works, except 
that Django attempts to INSERT a NULL value into that field, rather than just 
omitting it from the INSERT and getting the field value back.  What am I 
missing?

--
-- Christophe Pettus
   x...@thebuild.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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