Why should it be complained? I know a lot of the same cases that may be 
applied.

пятница, 19 февраля 2016 г., 15:00:12 UTC+2 пользователь Eddilbert Macharia 
написал:
>
> Hello All,
>
> I was working on a project, and realized that Django does not complain 
> when you create Circular Model relationship even when creating migrations 
> where i expected to have this complain
>
> e.g.  the example does not make any sense as far as relationships go but 
> it makes my point.
>
>
> class User(models.Model):  
>     # ... 
>     product = models.ForeignKey("Product", on_delete=models.CASCADE)
>     
> class Products(models.Model): 
>     bought_buy = models.ForeignKey(User, on_delete=models.CASCADE)
>
>
> why is this or whats the reasoning behind Django team allowing this ?
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e4469b9-2b6a-43a1-801e-d6db2cd56628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to