On Jul 5, 8:44 am, AnaReis <[EMAIL PROTECTED]> wrote: > Hi again,>From what I could understand, I would have to recreate the database > so > > that django could create an ID field for me. Unfortunately that isn't > possible because I'm using a legacy database and I can't change it.
Right. > In > this database, the primary key is the two fields combined, so their > combination has to be unique. Is there a way for me to do this without > having to change the database? Just changing the models.py file? Not sure. What RDBMS are you using? I understand about the need to retain your DB structure as is but are you allowed to *add* new constraints to the DB? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---