-
Notifications
You must be signed in to change notification settings - Fork 831
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
Develop #390
base: master
Are you sure you want to change the base?
Develop #390
Conversation
taxi/views.py
Outdated
class ManufacturerListView(generic.ListView): | ||
model = Manufacturer | ||
context_object_name = "manufacturer_list" | ||
queryset = Manufacturer.objects.all().order_by("name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove redundant all()
taxi/views.py
Outdated
class CarListView(generic.ListView): | ||
model = Car | ||
paginate_by = 5 | ||
queryset = Car.objects.all().select_related("manufacturer") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove redundant all()
<p>There are no manufacturers</p> | ||
{% endif %} | ||
</ul> | ||
{% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix everywhere
No description provided.