django-intermediate-table

Django: How do I create a view to update multiple records on an intermediate model with a Many-to-Many-through relationship?

眉间皱痕 提交于 2021-02-08 10:14:07
问题 I am a beginner to Django, and am creating an RSVP site to handle multiple events and keep track of guests to those events. I have a model for Guest , for Event , and an intermediate model for GuestEvent . I would like a page to loop through every GuestEvent for a Guest and allow me to update the attending , adults , and children fields in GuestEvent . I will never need to create or delete these fields through the front-end. I am currently trying to use the class-based UpdateView, but could