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(dépôt de besoins) : Admin : filtre par type du client #1029

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

madjid-asa
Copy link
Contributor

@madjid-asa madjid-asa commented Jan 3, 2024

Quoi ?

Dépôt de besoins filtre par type du client (structures, partenaires, particuliers) dans l'admin.

Pourquoi ?

Pour simplifier la vie des bizdevs.

Comment ?

Admin > Besoins

  • ajout d'un filtre à droite
  • ajout d'une colonne type d'acheteur
  • ajout de l'info dans la page détail

0818eeb : ajout des détails des acheteurs & partenaires

Capture d'écran

Image Suite au commit 0818eeb
filtre à droite image
liste image image
détail image image

@madjid-asa madjid-asa self-assigned this Jan 3, 2024
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.

LG!

def queryset(self, request, queryset):
lookup_value = self.value()
if lookup_value:
queryset = queryset.filter(author__kind=lookup_value)
Copy link
Contributor

Choose a reason for hiding this comment

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

on souhaite filter sur kind ou buyer_kind ?

Copy link
Contributor

Choose a reason for hiding this comment

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

j'ai fait quelques modifs, mais laissé à kind :)

Copy link
Contributor

Choose a reason for hiding this comment

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

je ferais une PR supplémentaire pour buyer_kind

@raphodn raphodn changed the title Feature(admin) : Dépôt de besoins filtre par type du client feat(dépôt de besoins) : Admin : filtre par type du client Jan 8, 2024
@raphodn raphodn merged commit 525e1c5 into master Jan 8, 2024
4 checks passed
@raphodn raphodn deleted the madjid-asa/tenders-add-author-kind-filter branch January 8, 2024 13:26
raphodn added a commit that referenced this pull request Jan 8, 2024
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.

3 participants