Use Model Objects as Fields in Another Model

30 views
Skip to first unread message

Forest Zhou

unread,
Aug 2, 2021, 4:26:42 PM8/2/21
to Django users
Hi,

I would like to use the objects from a model as fields in another model. ie. I have a model for items on a food menu, and I have another model for orders, which contains a field for each item on the menu indicting the quantity ordered. 

Thanks

rcdo...@gmail.com

unread,
Aug 3, 2021, 8:56:03 PM8/3/21
to Django users
i think this concerns Foreign key, and database relationships
Reply all
Reply to author
Forward
0 new messages