How to create "form" from "model" with 2 foreign keys?

73 views
Skip to first unread message

strang

unread,
Jan 3, 2020, 8:44:58 AM1/3/20
to Django users
Context: I'm new to Django. I've just completed the tutorial on the Docs page. I'm trying to make a coffee ordering application. Basically a person has to enter his details and select coffee along with number of cups.
Now a person may select 2 or 3 of the same type of coffee, or he may select multiple coffee types.

I've attached my models.py file. How do i make a form for this mode?
models.py
Reply all
Reply to author
Forward
0 new messages