<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_frontpage_documents(context):
 """Returns the library favs that should be shown on the front page."""

    req = context.get('request')
    qs = Document.objects.published(req).filter(is_on_front_page=True)
    return qs