Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5292 มุมมอง


Lets say:

  • I have 2 models, Model1 and Model2

  • They each have the reserved Boolean field active defined

  • They have a Many2many relationship

  • They have many records connected to each other


So in Model1 edit view  mode I click on a Model2 record, a popup with that record in edit mode is shown and I set active to False and save. When returning to the Model1 edit view the record that just was made inactive is still showing. It only dissapairs if I refresh the whole page.

How can I make Model1 automatically refresh its list of Model2 records after edit?


Thanks!


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
5628
2
มี.ค. 24
1954
1
ก.พ. 24
3708
2
ธ.ค. 17
9750
1
พ.ย. 16
14641