Sunday, September 27, 2020

Limit the choices for a ForeignKey

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
To view this discussion on the web visit

No comments:

Post a Comment