3
Answers

How to add two different object in a database?

Oddinx Zaer

Oddinx Zaer

3y
463
1

Hello, I have two models, one is called assignment and the other is called grades, I want to create  different grades when a assignment is created in a form .

I can save both models in the same  post method , I know it's a bad practice , that's why I'm looking for an alternative ,but it's there any form to save both object's without using the same method? 

Answers (3)