oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
424 stars 82 forks source link

customise add_form for InlineAjaxCRUD #68

Open allania7med11 opened 6 years ago

allania7med11 commented 6 years ago

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