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

feat(Admin): Ajout d'un filtre pour retrouver les dépôts par leur montant #1090

Merged
merged 7 commits into from
Feb 22, 2024

Conversation

madjid-asa
Copy link
Contributor

Quoi ?

Ajout d'un filtre pour retrouver les dépôts de besoins incrémentaux.

Pourquoi ?

Faciliter la vie des admins.

@madjid-asa madjid-asa self-assigned this Feb 19, 2024
@raphodn raphodn added the Admin label Feb 19, 2024
@madjid-asa madjid-asa force-pushed the madjid-asa/add_amount_filter_exact branch 3 times, most recently from c6fa666 to e34e4f6 Compare February 20, 2024 09:27
@madjid-asa madjid-asa changed the title [Admin] Ajout d'un filtre pour retrouver les dépôts de besoins incrémentaux feat(Admin): Ajout d'un filtre pour retrouver les dépôts de besoins incrémentaux Feb 20, 2024
Copy link
Contributor

@raphodn raphodn left a comment

Choose a reason for hiding this comment

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

cool !

lemarche/tenders/admin.py Outdated Show resolved Hide resolved
lemarche/tenders/models.py Outdated Show resolved Hide resolved
lemarche/tenders/tests.py Outdated Show resolved Hide resolved
@madjid-asa madjid-asa force-pushed the madjid-asa/add_amount_filter_exact branch from 9ccac33 to f3201e4 Compare February 22, 2024 08:56
@madjid-asa madjid-asa merged commit e53be2c into master Feb 22, 2024
5 checks passed
@madjid-asa madjid-asa deleted the madjid-asa/add_amount_filter_exact branch February 22, 2024 09:14
@raphodn raphodn changed the title feat(Admin): Ajout d'un filtre pour retrouver les dépôts de besoins incrémentaux feat(Admin): Ajout d'un filtre pour retrouver les dépôts par leur montant Mar 1, 2024
return queryset.filter_by_amount_exact(amount_10k, operation="lt")
elif value == "5k-10k":
return queryset.filter_by_amount_exact(amount_10k, operation="lte").filter_by_amount_exact(
amount_10k, operation="gte"
Copy link
Contributor

Choose a reason for hiding this comment

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

typo ici : je corrige dans #1112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants