Hi I am a Django beginner and I am just getting into creating apps with it, my goal was to create a simple order application for practice. The app will be somewhat like this:
1.A user will login or create an account. 2.A user will order from a list of items and depending on the item it may have size and/or type, some will have preset sizes and no type at all. 3. Upon purchase which for this demo will not have a monetary system integrated, so as a replacement it will email the admin email with the details and also display the order to them for printing once they are finished. 4. The user will be able to check his/her orders in which the admin will be able to set to pending or shipped to each order 5. The admin will also be able to view all orders from every user and delete, edit, mark the details of the order. Pretty straightforward I thought but I can't seem to wrap my head around the models mostly and especially the product table. For the products would I be creating an array of different orders and a separate array of sizes in the controller and assigning that to the form? My 3 classes in my model are currently Users, Products, Orders I am not sure how a order from the products is assigned to a user in the database, does the Users class need to have both products and orders inside of it as a one to many for both? So when I create the form that submits this information how does it assign that order to that product to that user? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.