Django should have OneToManyField
A bit of background here about ForeignKey (many to one): If you have Order and OrderItem models, your order FK is in OrderItem model, from OrderItem model point of view, it’s Many OrderItem to One Order, in other words ManyToOne. What this implies is you need to have Order records before OrderItem records. Now, why… Read More »