[Fixed]-Django Admin – SubModels on Parent Form

1👍

admin.py:

class ProductImageInline(admin.StackedInline):
    model = ProductImage


class GalleryAdmin(admin.ModelAdmin):
    inlines = [ProductImageInline]

Leave a comment