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 
> <spal...@gmail.com<javascript:>
> > 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?
>>
>
> You can always make a relationship cyclical after the fact by just 
> populating the foreign key field. You just can't have it required, because 
> then you have a chick-and-egg problem. It's possible you could make it work 
> by deferring the commit using commit=False [1], but overall it's probably a 
> bad idea.
>
> [1] 
> https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/295c0912-76e3-480e-b670-f69f758fd269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to