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

🐛(dashboard) adjust manager order in Consent model #306

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

ssorin
Copy link
Collaborator

@ssorin ssorin commented Dec 19, 2024

Purpose

Django admin is sensitive to the order of model manager declarations.
In order to display all data in the admin, it is important to use django's default model manager.

Proposal

  • Reordered objects and active_objects in the Consent model to ensure compatibility with Django admin expectations.
  • Introduce a test to ensure the default Django manager is used in the admin setup, avoiding issues with custom managers.

@ssorin ssorin added bug Something isn't working needs review dashboard Item related to the Dashboard service labels Dec 19, 2024
@ssorin ssorin requested a review from jmaupetit December 19, 2024 08:50
@ssorin ssorin self-assigned this Dec 19, 2024
Copy link
Member

@jmaupetit jmaupetit left a comment

Choose a reason for hiding this comment

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

Reordered `objects` and `active_objects` in the Consent model to ensure compatibility with Django admin expectations.
Introduce a test to ensure the default Django manager is used in the admin setup, avoiding issues with custom managers.
@ssorin ssorin force-pushed the fix/dashboard/default-consent-manager branch from 13ab6b6 to a557657 Compare December 19, 2024 17:29
@ssorin ssorin marked this pull request as ready for review December 19, 2024 17:30
@ssorin ssorin merged commit 46ed0e6 into main Dec 19, 2024
9 of 10 checks passed
@ssorin ssorin deleted the fix/dashboard/default-consent-manager branch December 19, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dashboard Item related to the Dashboard service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants