Complete the code to import the ModelForm class from Django forms.
from django.forms import [1]
The ModelForm class is imported from django.forms to create forms based on models.
Complete the code to define a ModelForm class for the 'Book' model.
class BookForm([1]): class Meta: model = Book fields = '__all__'
The form class must inherit from ModelForm to link it to the model.
Fix the error in the Meta class to specify only the 'title' and 'author' fields.
class Meta: model = Book fields = [1]
The fields attribute must be a list or tuple of field names, not a single string.
Fill both blanks to create a ModelForm for the 'Author' model including only 'name' and 'email' fields.
class AuthorForm([1]): class Meta: model = [2] fields = ['name', 'email']
The form class inherits from ModelForm and the model is set to Author.
Fill all three blanks to create a ModelForm for 'Publisher' model with only 'name' and 'address' fields and import the model.
from .models import [1] class PublisherForm([2]): class Meta: model = [3] fields = ['name', 'address']
Import the Publisher model, inherit from ModelForm, and set the model to Publisher.