Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution #863

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Solution #863

wants to merge 3 commits into from

Conversation

TenbReala
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the Django application! 🎉 The code is well-structured and meets all the core requirements of the task. While there are a few minor grammatical issues in the templates and a small spacing issue in the pagination links, these do not impact the functionality of your application. Keep up the good work, and consider addressing these minor issues to polish your project further. 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

<ul class="pagination">
{% if page_obj.has_previous %}
<li class="page-item">
<a href="?page= {{ page_obj.previous_page_number }}" class="page-link">prev</a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an extra space after ?page= in the href attribute. It should be ?page={{ page_obj.previous_page_number }} without the space to ensure the URL is correctly formed.


{% if page_obj.has_next %}
<li class="page-item">
<a href="?page= {{ page_obj.next_page_number }}" class="page-link">next</a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, there is an extra space after ?page= in the href attribute. It should be ?page={{ page_obj.next_page_number }} without the space.

{% for driver in car.drivers.all %}
<li>{{ driver.username }}</li>
{% empty %}
<p>Car haven't a drivers</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message 'Car haven't a drivers' is grammatically incorrect. It should be 'Car doesn't have any drivers' or 'This car has no drivers.'

{% for car in car_list%}
<li><a href="{% url 'taxi:car-detail' car.id %}">{{ car.model }}</a></li>
{% empty %}
<p>There is no car</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message 'There is no car' is grammatically incorrect. It should be 'There are no cars' or 'No cars available.'

{% for car in driver.cars.all %}
<li>{{ car.model }}</li>
{% empty %}
<p>Driver haven't a car</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message 'Driver haven't a car' is grammatically incorrect. It should be 'Driver doesn't have any cars' or 'This driver has no cars.'

{% for driver in driver_list %}
<li><a href="{% url 'taxi:driver-detail' driver.id %}">{{ driver.first_name }}</a></li>
{% empty %}
<p>There is no drivers</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message 'There is no drivers' is grammatically incorrect. It should be 'There are no drivers' or 'No drivers available.'

{% for manufacturer in manufacturer_list%}
<li>{{ manufacturer.name }}: {{ manufacturer.country }}</li>
{% empty %}
<p>There is no manufacturers</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message 'There is no manufacturers' is grammatically incorrect. It should be 'There are no manufacturers' or 'No manufacturers available.'

@TenbReala
Copy link
Author

sol_4
sol_3
sol_2
sol_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants