Skip to content

Commit

Permalink
fix: fixed various mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
popeye88 committed Nov 13, 2024
1 parent 7ca4845 commit 809d341
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion taxi/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.urls import reverse


class Manufacturer(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion taxi/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.urls import path

from .views import CarDetailView, CarListView, DriverDetailView, \
from taxi.views import CarDetailView, CarListView, DriverDetailView, \
DriverListView, \
ManufacturerListView, index

Expand Down
4 changes: 3 additions & 1 deletion templates/taxi/car_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ <h3>
{% for driver in car.drivers.all %}
<a href="{% url 'taxi:driver-detail' driver.id %}">{{ driver.username }}</a>
{% if not forloop.last %}, {% endif %}
{% empty %}
No drivers
{% endfor %}
</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}
{% endblock %}
4 changes: 3 additions & 1 deletion templates/taxi/driver_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ <h3>
{% for car in driver.cars.all %}
<a href="{% url 'taxi:car-detail' car.id %}">{{ car.model }}</a>
{% if not forloop.last %}, {% endif %}
{% empty %}
No cars
{% endfor %}
</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}
{% endblock %}

0 comments on commit 809d341

Please sign in to comment.