views:

145

answers:

0

I am using django's inline formset factory. To use the example in the docs,

author = Author.objects.get(pk=1)
BookFormSet = inlineformset_factory(Author, Book)
formset = LicenceFormSet(request.POST, instance=author)

will create an inline formset to edit books by a particular author.

I want to create a formset that only allows users to add new books by that author, not edit existing books. Is there a simple way to use inlineformset_factory to do this?