Skip to content

Commit

Permalink
may be this way
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiIshchenko committed Nov 17, 2023
1 parent 5834469 commit f88e1dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Binary file modified db.sqlite3
Binary file not shown.
9 changes: 1 addition & 8 deletions templates/taxi/driver_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@ <h1>Driver list</h1>
{% if driver_list %}
<ul>
{% for driver in driver_list%}
{% if user.id == driver.id %}
<li>
<a href="{% url 'taxi:driver-detail' pk=driver.id %}">{{ driver.username }}</a>
({{ driver.first_name }} {{ driver.last_name }}) <strong>(Me)</strong>
({{ driver.first_name }} {{ driver.last_name }}) {% if user.id == driver.id %}<strong>(Me)</strong>{% endif %}
</li>
{% else %}
<li>
<a href="{% url 'taxi:driver-detail' pk=driver.id %}">{{ driver.username }}</a>
({{ driver.first_name }} {{ driver.last_name }})
</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
Expand Down

0 comments on commit f88e1dc

Please sign in to comment.