[Answer]-Edit manytomany field right from Admin form for model

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

Leave a comment