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

[Dépôt de besoin] Admin : réparer les stats des structures #968

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

raphodn
Copy link
Contributor

@raphodn raphodn commented Nov 6, 2023

Quoi ?

Dans l'admin coté Tender, on avait 2 queryset chained : Tender.objects.with_siae_stats().with_question_stats()
Or cela provoque des doublons, et donc fausse les chiffres affichés aux admins...

J'ai enlevé le with_question_stats() vu qu'il n'est pas primordial, ni utilisé dans la vue liste, et facilement remplacable dans la vue détail par tender.questions.count()

Pourquoi ?

Problème connu : https://code.djangoproject.com/ticket/10060

@raphodn raphodn self-assigned this Nov 6, 2023
Copy link
Contributor

@SebastienReuiller SebastienReuiller left a comment

Choose a reason for hiding this comment

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

Bien joué !

@raphodn raphodn merged commit 26cf773 into master Nov 8, 2023
2 checks passed
@raphodn raphodn deleted the raphodn/tender-queryset-chain-error branch November 8, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants