[Fixed]-How call this backend coding?

1👍

You can use inlines to implement what you want in django admin:

from django.contrib import admin

class ImagesInline(admin.TabularInline):
    model = Images

class PostsAdmin(admin.ModelAdmin):
    inlines = [
        BookInline,
    ]

admin.site.register(Posts, PostsAdmin)

Leave a comment