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 #892

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

Solution #892

wants to merge 2 commits into from

Conversation

watergor
Copy link

image
image
image

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 setting up the Django application! 🎉 While there are a few minor issues, such as the unnecessary fields attribute in the ManufacturerDeleteView and some typos in the confirmation messages, these do not critically impact the functionality of your code. Remember to add a Cancel button in your delete confirmation templates for better user experience. Keep up the good work and happy coding! 😊

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

taxi/views.py Outdated
Comment on lines 52 to 54
class ManufacturerDeleteView(LoginRequiredMixin, generic.DeleteView):
model = Manufacturer
fields = "__all__"

Choose a reason for hiding this comment

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

The ManufacturerDeleteView should not have a fields attribute. The DeleteView does not require fields to be specified as it does not deal with form submissions in the same way as CreateView or UpdateView. You can remove the fields attribute from this view.


{% block content%}
<h1>Delete car</h1>
<p>Are you sure wont to delete the car: {{ car }}</p>

Choose a reason for hiding this comment

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

There is a typo in the confirmation message: 'wont' should be corrected to 'want'. The line should read: <p>Are you sure you want to delete the car: {{ car }}</p>.


{% block content%}
<h1>Delete manufacturer</h1>
<p>Are you sure wont to delete the manufacturer: {{ manufacturer.name }}</p>

Choose a reason for hiding this comment

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

There is a typo in the confirmation message: 'wont' should be corrected to 'want'. The line should read: <p>Are you sure you want to delete the manufacturer: {{ manufacturer.name }}</p>.

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