hi djangos, i switched from symfony to django :) its fun, thanks!
but i am stuck with my database/model design. now it gets OT (sorry) but i need an opinion on how to design a typical order process: class Order(models.Model): user = models.ForeignKey(User, verbose_name=_("Customer"), related_name=_("orders")) status = models.ForeignKey("OrderStatus",related_name=_("orders")) and then i got Product, OrderDetail, ShippingAddress, Shipment etc... i would for example need: products_ordered = models.ManyToManyField(Product) i don't like it (as i would have to create my own "through" table/ class) for saving the recent price, qty, date etc. what would you do? blow up the Order-Class with all the Details and many ManyToManyFields,ForeignKeyFields or create some Classes that contain foreignKeys references to OrderInstances: e.g.: class ProductOrdered(models.Model): order = models.ForeignKey(Order, related_name=_ ("products_ordered")) product = models.ForeignKey(Product,related_name=_ ("products_ordered")) qty = models.PositiveIntegerField(_("Quantity")) price_per_piece = models.DecimalField(max_digits=10, decimal_places=3) merci max --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---