Accessing fields from foreign key in inlineformset

Hi, it is indeed valid to choose both eat in and takeaway, since there cases where the users can get a meal to eat in and a portion to take with them.

1 Like

Ok, two more procedural issues to address:

  • I’m assuming that if the person has already made a selection, and they go back into that page, they are supposed to see the selections they’ve made. Is that correct?

  • Assume a person has selected “eat-in” for a particular meal. Is there any possibility that the Meal may be subsequently changed such that “eat-in” is changed from True to False for that meal? If so, how is that to be handled? (It may be something that cannot happen, or you may be handling it elsewhere. In either of those cases, it doesn’t affect this.)

  1. Yes that is correct.

  2. yes, before the deadline expires, it should be possible to change the selection of eat in/takeaway

I’m sorry, I wasn’t sufficiently clear on #2.

I’m talking about the situation where the Meal instance could be changed - for example, the case where it’s initially defined as allowing both eat-in and takeway, but then Meal needs to be changed where it only allows takeaway.
This change would invalidate any Participant that selected eat-in.
And to repeat my caveat: This may be something that cannot happen, or you may be handling it elsewhere. In either of those cases, it doesn’t affect this .

Ahha, I see. No, this shouldn’t change.