Add Inline Field

Report a typo

You have the FilmAdmin class in the admin.py module:

class FilmAdmin(admin.ModelAdmin):
    ...

Create an inline class for the model Actor with default parameters and add it to inline fields of FilmAdmin.

The model Actor is already available for you; do not define it yourself.

Write a program in Python 3
from django.contrib import admin

class ActorInLine(admin.TabularInline):
...


class FilmAdmin(admin.ModelAdmin):
...
___

Create a free account to access the full topic