Catriona, Only AutoFields are auto-incrementing in Django. If you want to use a custom primary key that isn't an AutoField, you will need to populate the primary key yourself (or else create a custom trigger for it), just as you would for any other column that is both NOT NULL and UNIQUE. This is true across all the backends, not just Oracle.
-Ian On Aug 14, 5:34 pm, Catriona <[EMAIL PROTECTED]> wrote: > Hi Jon > > Thanks for your reply. I read the article but with Oracle, a sequence > and trigger needs to be created for autogenerated primary keys. If I > try the code that you gave me, neither the sequence nor trigger are > created --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---