How do I create/update/retrieve multiple Models in one View in Django Rest Framework
I have a Business model and Order model. Businesses can order furniture in our website. A user creates an account and makes an order. Since he is a new user, he is not associated to any Business. In the order form, he will give the information about his business and some information related to current order. A new Business record and Order record will be created with the given info. There’s a foreign key for Business in Order table.