<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_filter_dict(d, user, status):
 """Helper. Updates filter dict for a queryset. :param dict d: :param User|None user: :param int|None status: :return: """

    if user is not None:
        if not user.id:
            return None
        d['user'] = user
    if status is not None:
        d['status'] = status