Oddinx Zaer

Oddinx Zaer

  • 2.1k
  • 11
  • 318

How to add two different object in a database?

Oct 20 2021 1:12 AM

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)