Re: PK and FK questions

2010-04-07 Thread Peter Herndon
On Apr 7, 2010, at 11:45 AM, ojayred wrote: > Hello All, > > I am new to Django and thinking about migrating to Django from our > existing web environment. I had a couple of questions that I would > like help in answering them. Your insight is greatly appreciated. > Thank you. > > 1)

Re: PK and FK questions

2010-04-07 Thread ojayred
For responses to 1 and 3. Is there somewhere I can look? I guess I will have to test these capabilities along with unique_together to resolve the Multiple PK issue. For 2, I will have to add them as suggested. For 4. Sorry, I couldn't understand. Can you explain it again. :) I have a test

RE: Re: PK and FK questions

2010-04-07 Thread Henrik Genssen
Hi, >> 1) Considering, there is no support for Multiple Primary keys, how >> would Django react if my tables have multiple primary keys and I tried >> to update or delete a record? I am just curious. sorry, I do not know... >> 2) I read somewhere that each table must have one primary key? Some

Re: PK and FK questions

2010-04-07 Thread Marcos MarĂ­n
Hi, I'm not too experienced with django myself so I will let someone else answer the rest of your questions. But for 2, wouldn't it be fairly simple to create primary keys for these tables? worst case scenario you just add a column that is a auto_incremented int and run a script to set it for

PK and FK questions

2010-04-07 Thread ojayred
Hello All, I am new to Django and thinking about migrating to Django from our existing web environment. I had a couple of questions that I would like help in answering them. Your insight is greatly appreciated. Thank you. 1) Considering, there is no support for Multiple Primary keys, how would