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

Implement class-based views for Manufacturer, Car, and Driver #865

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 11, 2024

  1. Implement class-based views for Manufacturer, Car, and Driver

    - Created ManufacturerListView with model ordering by name and pagination of 5
    - Created CarListView with optimized queryset to prevent N+1 problem and pagination of 5
    - Created CarDetailView with model
    - Created DriverListView with pagination of 5
    - Created DriverDetailView with optimized queryset to prevent N+1 problem
    - Updated urls.py with paths for list and detail views
    - Created templates for list and detail views, adding links in car and driver lists
    - Included pagination template and links in sidebar
    Lev2098 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    0e2f201 View commit details
    Browse the repository at this point in the history