Re: unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
Hi Karen, It is my mistake. After changing the class members, I forget to change the __unicode__ method... Thank you very much. On May 30, 8:28 pm, Karen Tracey wrote: > On Sun, May 30, 2010 at 5:21 AM, Karl Lam wrote: > > Class A and class B were setup using syncdb. Class B has a FK of clas

Re: unique_together FK problem with version 1.2.1

2010-05-30 Thread Karen Tracey
On Sun, May 30, 2010 at 5:21 AM, Karl Lam wrote: > Class A and class B were setup using syncdb. Class B has a FK of class > A. > > First I login to the admin site to add a record of Class A. Then add a > record of Class B by choosing the only record of Class A as FK. Error > occurs after clickin

unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
Class A and class B were setup using syncdb. Class B has a FK of class A. First I login to the admin site to add a record of Class A. Then add a record of Class B by choosing the only record of Class A as FK. Error occurs after clicking "save" button. Is this a bug? or my setting is wrong? Thank