Skip to content

Commit

Permalink
linter errors were fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Vlad-96 committed Aug 19, 2024
1 parent 68ca83b commit 3120101
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 @@ -6,7 +6,7 @@
from .models import Driver, Car, Manufacturer


@login_required(login_url='login')
@login_required(login_url="login")
def index(request):
"""View function for the home page of the site."""

Expand Down Expand Up @@ -48,8 +48,6 @@ class DriverListView(LoginRequiredMixin, generic.ListView):
paginate_by = 5




class DriverDetailView(LoginRequiredMixin, generic.DetailView):
model = Driver
queryset = Driver.objects.prefetch_related("cars__manufacturer")

0 comments on commit 3120101

Please sign in to comment.