[Fixed]-Efficient way in Django Models to store Items Purchased in a Transaction for a Commerce Store

1👍

  • I don’t think it’s that big of a problem (it will at worst have x10 records than Bills table, which in DB world is not that big of a deal).
  • But if you have to, a better way would be to have a many to many relationship between Bills and Product. The only issue will be adding “quantity” to your bridge table. You can look at this answer on how to implement it.
👤morinx

Leave a comment