<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def home(request):
 """This view generates the data for the home page. This login restricted view passes dictionaries containing the current cages, animals and strains as well as the totals for each. This data is passed to the template home.html"""

    cage_list = Animal.objects.values("Cage").distinct()
    cage_list_current = cage_list.filter(Alive=True)
    animal_list = Animal.objects.all()
    animal_list_current = animal_list.filter(Alive=True)
    strain_list = animal_list.values("Strain").distinct()
    strain_list_current = animal_list_current.values("Strain").distinct()
    return render(request, 'home.html', {'animal_list':animal_list, 'animal_list_current':animal_list_current, 'strain_list':strain_list, 'strain_list_current':strain_list_current, 'cage_list':cage_list, 'cage_list_current':cage_list_current})