def formfield_for_foreignkey(self, db_field, request, **kwargs):
    if db_field.name == 'book':
        kwargs['queryset'] = Book.objects.filter(author__id=object_id)
Filter Foreignkey within Inlineform