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

Related polymorphic query support inc select_related and prefetch_related #545

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

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    9207c5f View commit details
    Browse the repository at this point in the history
  2. add select_related and partial prefetch_related support

    implement support for a single query for select related base fetches across polymorphic models.
    
    adds a polymorphic QuerySet Mixin to enable non polymorphic models to fetch related models.
    
    fixes: jazzband#198 jazzband#436 jazzband#359 jazzband#244
    possible fixes:
        jazzband#498: support for prefetch_related cannot fetch attributes not on all child models or via class names
    related: jazzband#531
    pgammans committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    f06de2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    542c16e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    865bb89 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9cfebf9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1e8d6c1 View commit details
    Browse the repository at this point in the history
  7. style: improve linting

    pgammans committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    cb033d6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ea4373d View commit details
    Browse the repository at this point in the history
  9. testing: lint

    pgammans committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    631de9e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f115219 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    dbfcb86 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4a1fba7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0ed1580 View commit details
    Browse the repository at this point in the history
  14. test fix extra _ in path

    pgammans committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    004ada5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    eae92aa View commit details
    Browse the repository at this point in the history