Re: Self referencing models initialization

2014-03-13 Thread Santiago Palacio Gómez
I see, nice tip. Thanks! El jueves, 13 de marzo de 2014 12:35:48 UTC-5, Shawn Milochik escribió: > > On Thu, Mar 13, 2014 at 1:07 PM, Santiago Palacio Gómez > > > wrote: > >> Ok, just did that and it worked (had to delete and re-create the db). >> Thank you very much for your quick reply. >> >>

Re: Self referencing models initialization

2014-03-13 Thread Shawn Milochik
On Thu, Mar 13, 2014 at 1:07 PM, Santiago Palacio Gómez wrote: > Ok, just did that and it worked (had to delete and re-create the db). > Thank you very much for your quick reply. > > One last question though, just for curiosity, is there no way to create > such cyclic relationships? If so, how? >

Re: Self referencing models initialization

2014-03-13 Thread Santiago Palacio Gómez
Ok, just did that and it worked (had to delete and re-create the db). Thank you very much for your quick reply. One last question though, just for curiosity, is there no way to create such cyclic relationships? If so, how? El jueves, 13 de marzo de 2014 03:41:05 UTC-5, Erik Cederstrand escribi

Re: Self referencing models initialization

2014-03-13 Thread Erik Cederstrand
Den 13/03/2014 kl. 06.34 skrev Santiago Palacio Gómez : > Hi everyone, > > I'm a Django newbie, and I was following the tutorial for 1.6, creating a new > app where one of the models is self-referencing. They ask to, in manage.py > shell, create an instance of the model. But, as my model has a

Self referencing models initialization

2014-03-12 Thread Santiago Palacio Gómez
Hi everyone, I'm a Django newbie, and I was following the tutorial for 1.6, creating a new app where one of the models is self-referencing. They ask to, in manage.py shell, create an instance of the model. But, as my model has a self reference foreign key, I can't pass any object to the key. I