Sunday, September 27, 2020

Re: Limit the choices for a ForeignKey

Hi,

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


On Sun, Sep 27, 2020 at 10:09 PM Marco Paradisi <leyven.0@gmail.com> wrote:
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

--
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+unsubscribe@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

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m314V6rMaarKnx3rV4uNO%3DfKo-24JsNLczFddDNShN65mmw%40mail.gmail.com.

No comments:

Post a Comment