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

Prefetch related models in FPR views #1985

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Prefetch related models in FPR views #1985

merged 5 commits into from
Aug 29, 2024

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    a3037f3 View commit details
    Browse the repository at this point in the history
  2. Prefetch Format and FormatGroup in FPCommand form

    The values of the `The related output format` field are string
    representations of the Format models. The __str__ method of the Format
    model prints its related FormatGroup.
    
    This prefetches the FormatGroup models in advance in the queryset of
    the field so it doesn't require separate queries for each Format.
    replaceafill committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e31f76b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc51180 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d1909b9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a197c9 View commit details
    Browse the repository at this point in the history