Re: ForeignKey Reverse Relation Fail

2022-07-31 Thread Ammar Mohammed
Using many to many relationship will work better. Nice note ๐Ÿค— Your quote Translation : "ู„ุง ูŠุคู…ู† ุงุญุฏูƒู… ุญุชูŠ ูŠุญุจ ู„ุงุฎูŠู‡ ู…ุง ูŠุญุจ ู„ู†ูุณู‡" On 27 Jul 2022 19:04, "Malik Rumi" wrote: > Thanks, but the recursive foreignkey *is* a one to many relationship... > unless you're talking about something else? > *โ€œN

Re: ForeignKey Reverse Relation Fail

2022-07-31 Thread Ryan Nowakowski
Since this is a question about your models, please post your models.py. On 7/27/22 5:18 AM, Malik Rumi wrote: I have a model with a recursive foreign key to 'self'. This is intended to model a parent child relation among instances. The forward relation, on a field called 'childof', works as exp

Re: ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
Thanks, but the recursive foreignkey *is* a one to many relationship... unless you're talking about something else? *โ€œNone of you has faith until he loves for his brother or his neighbor what he loves for himself.โ€* On Wed, Jul 27, 2022 at 10:16 AM Ammar Mohammed wrote: > Hi > Have you tried us

Re: ForeignKey Reverse Relation Fail

2022-07-27 Thread Ammar Mohammed
Hi Have you tried using OneToMany relationship ? On 27 Jul 2022 12:18, "Malik Rumi" wrote: > I have a model with a recursive foreign key to 'self'. This is intended to > model a parent child > relation among instances. The forward relation, on a field called > 'childof', works as expected. > The

ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
I have a model with a recursive foreign key to 'self'. This is intended to model a parent child relation among instances. The forward relation, on a field called 'childof', works as expected. The reverse relation, using the related_name 'parent', comes up as a RelatedManager, again as expected.