Limit the choices for a ForeignKey

37 views
Skip to first unread message

Marco Paradisi

unread,
Sep 27, 2020, 12:40:09 PM9/27/20
to django...@googlegroups.com
Hi Everyone!

I need to filter the choices for a foreign key.

My Model has an attribute SEX that could be M or F, and two Foreign keys ( FATHER and MOTHER ), I want both filtered for sex.

How can I achieve it?

Thanks in advance

RANGA BHARATH JINKA

unread,
Sep 27, 2020, 1:12:41 PM9/27/20
to django...@googlegroups.com
Hi,

    Check this. This may be useful for you. It is based on dependent dropdown.


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFCTdWp0xJE_J-r%3DmHbHzVmeAsGvotFc1%3DyQBGuyEzjfiiVxTA%40mail.gmail.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

Dvs Khamele

unread,
Oct 11, 2020, 1:41:03 PM10/11/20
to django...@googlegroups.com, leyv...@gmail.com
Hi do you hire contract based python/django freelancer?
We can help you in this and related techincal tasks at fair prices. Reply or send email to div...@pythonmate.com
Best Regards, 
Divyesh Khamele,
Pythonmate


--
Reply all
Reply to author
Forward
0 new messages