Skip to content

Commit

Permalink
Fixed the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Yablonskyi committed Dec 4, 2024
1 parent a2bd0b4 commit 99bfff0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file modified db.sqlite3
Binary file not shown.
2 changes: 0 additions & 2 deletions taxi/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
path(
"drivers/<int:pk>/", DriverDetailView.as_view(), name="driver-detail"
),
path("accounts/", include("django.contrib.auth.urls")),

]

app_name = "taxi"
2 changes: 1 addition & 1 deletion taxi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ManufacturerListView(LoginRequiredMixin, generic.ListView):
class CarListView(LoginRequiredMixin, generic.ListView):
model = Car
paginate_by = 5
queryset = Car.objects.select_related("manufacturer")
queryset = Car.objects.select_related("manufacturer").order_by("id")


class CarDetailView(LoginRequiredMixin, generic.DetailView):
Expand Down
1 change: 1 addition & 0 deletions taxi_service/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
path("accounts/", include("django.contrib.auth.urls")),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 comments on commit 99bfff0

Please sign in to comment.