def remove_author(request, book_id):
book = get_object_or_404(Book, id=book_id)
class Form(forms.Form):
author = forms.ModelChoiceField(
queryset=book.authors.all(),
)
# ...
def remove_author(request, book_id):
book = get_object_or_404(Book, id=book_id)
class Form(forms.Form):
author = forms.ModelChoiceField(
queryset=book.authors.all(),
)
# ...