Skip to content

Commit

Permalink
fixed mistakes in py-taxi-service-authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliiapyrih committed Dec 8, 2024
1 parent 416f23a commit 8a5d0ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taxi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .models import Driver, Car, Manufacturer


@login_required
def index(request):
"""View function for the home page of the site."""
Expand All @@ -25,7 +26,7 @@ def index(request):
return render(request, "taxi/index.html", context=context)


class ManufacturerListView(LoginRequiredMixin ,generic.ListView):
class ManufacturerListView(LoginRequiredMixin, generic.ListView):
model = Manufacturer
context_object_name = "manufacturer_list"
template_name = "taxi/manufacturer_list.html"
Expand Down

0 comments on commit 8a5d0ec

Please sign in to comment.