Skip to content

Commit

Permalink
Fixed flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
achalaidiuk committed Sep 10, 2024
1 parent 6e77778 commit 41a9842
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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 Down Expand Up @@ -50,6 +51,3 @@ class DriverListView(LoginRequiredMixin, generic.ListView):
class DriverDetailView(LoginRequiredMixin, generic.DetailView):
model = Driver
queryset = Driver.objects.prefetch_related("cars__manufacturer")



0 comments on commit 41a9842

Please sign in to comment.