so i have 3 models project model_1 model_2
model_1 and model_2 has project as ForeignKey
model_2 has model_1 as ForeignKey (named f_m_1)
in .views i define :
model_1_in and model_2_in as InlineAjaxCRUD
Project_v as CRUDView with inlines = [model_1_in,model_2_in]
After the user creat project_x and edit it he can define instances for model 1 and 2 for project_x
how can i define add_form in model_2_in so user can only choose f_m_1 for project_x
so i have 3 models project model_1 model_2 model_1 and model_2 has project as ForeignKey model_2 has model_1 as ForeignKey (named f_m_1) in .views i define : model_1_in and model_2_in as InlineAjaxCRUD Project_v as CRUDView with inlines = [model_1_in,model_2_in] After the user creat project_x and edit it he can define instances for model 1 and 2 for project_x how can i define add_form in model_2_in so user can only choose f_m_1 for project_x