Re: models foreign key

2017-01-15 Thread Michal Petrucha
On Thu, Jan 12, 2017 at 01:40:43AM -0800, jeffreyequizuvero wrote: > > > *This is about the models foreign key, I have two tables and i used foreign > key to connect these tables however after i did migration it's not working. > Is there any wrong with my code? * I can

Re: models foreign key

2017-01-15 Thread Melvyn Sopacua
On Monday 16 January 2017 07:55:28 Jeffrey Uvero wrote: > *I am using oracle. * > > *actually I used the procedure before and it was successful, but now i > used same procedure but it didn't work. * Make sure that the tool you use to "see the connection between these tables" is not the problem.

Re: models foreign key

2017-01-15 Thread Jeffrey Uvero
*I am using oracle. * *actually I used the procedure before and it was successful, but now i used same procedure but it didn't work. * On Sun, Jan 15, 2017 at 12:16 AM, Melvyn Sopacua wrote: > On Friday 13 January 2017 07:42:17 Jeffrey Uvero wrote: > > > *there's no problem appeared but when I

Re: models foreign key

2017-01-14 Thread Melvyn Sopacua
On Friday 13 January 2017 07:42:17 Jeffrey Uvero wrote: > *there's no problem appeared but when I go to my database, there's no > connection with these two table.. there should be a connection between > two same name column.(foreign key)* > Correction with my code above. How did you determine th

Re: models foreign key

2017-01-12 Thread Jeffrey Uvero
missing a quotation mark around Author_code in the *to_field* >parameter; >- The fields on both models have the same name, this might cause >problems. > > > > On Thursday, January 12, 2017 at 10:40:43 AM UTC+1, jeffreyequizuvero > wrote: >> >> >> >

Re: models foreign key

2017-01-12 Thread jorrit787
January 12, 2017 at 10:40:43 AM UTC+1, jeffreyequizuvero wrote: > > > > *This is about the models foreign key, I have two tables and i used > foreign key to connect these tables however after i did migration it's not > working. Is there any wrong with my code? * > &

models foreign key

2017-01-12 Thread jeffreyequizuvero
*This is about the models foreign key, I have two tables and i used foreign key to connect these tables however after i did migration it's not working. Is there any wrong with my code? * *please help, Thanks. * class *Author*(models.Model): *Author_code = models.CharField(max_leng

Re: Django Models Foreign Key Issue!

2012-05-29 Thread Eugène Ngontang
Hi all! The issue was not from Django side, but really from my models implementation. I made mistake when propagating my associative tables through other tables. And there was another unity constraint blocking the one i wanted to set. I don't think it's necessary to explain you all here, because

Django Models Foreign Key Issue!

2012-05-28 Thread Eugene NGONTANG
I encountered a problem using Django foreign key unique_together for one of my models. I have three models (representing three tables in the database), host, user, and job. - user has a host foreign key - job has a user foreign key and a host foreign key : Because we can have the same user on two