django inline formsets with a complex model for the nested form
问题 Say I have django model that looks something like this: class Order(models.Model): number = models... date = models... class OrderLine(models.Model): # One or more lines per order order = models.ForeginKey(Order) common_line = models.OneToOneField(CommonLine) class CommonLine(models.Model): # common elements of what might be on a line item... taxes = model... amount = model... I want to create a form that uses an inlineformset to edit one or more Lines (both OrderLine and CommonLine) per