1👍
You can use an inline:
class ProductQuantityInline(admin.StackedInline):
model = ProductQuantity
class InvoiceAdmin(admin.ModelAdmin):
inlines = [ProductQuantityInline]
That way, you can edit the ProductQuantity
directly on the Invoice
admin page, without any extra dialogs.
👤sk1p
Source:stackexchange.com