Admin : afficher le type de compte du demandeur dans les demandes de régulation NIR - #6602
Merged
Conversation
tonial
reviewed
Jul 24, 2025
|
|
||
| @admin.display(description="Type de compte de l'auteur") | ||
| def requested_by_type(self, obj): | ||
| return dict(UserKind.choices)[obj.requested_by.kind] |
Contributor
There was a problem hiding this comment.
obj.requested_by.get_kind_display() ?
Contributor
Author
|
Je n'ai pas farfouillé assez 🙈
Merci !
Le 24 juillet 2025 20:19:41 GMT+02:00, Antoine LAURENT ***@***.***> a écrit :
…
@tonial commented on this pull request.
> @@ -960,6 +960,10 @@ def get_search_fields(self, request):
search_fields.append("jobseeker_profile__user__last_name__unaccent")
return search_fields
+ @admin.display(description="Type de compte de l'auteur")
+ def requested_by_type(self, obj):
+ return dict(UserKind.choices)[obj.requested_by.kind]
`obj.requested_by.get_kind_display()` ?
--
Reply to this email directly or view it on GitHub:
#6602 (review)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
EwenKorr
force-pushed
the
ewen/nir_admin
branch
2 times, most recently
from
July 28, 2025 06:27
725b624 to
7f25f1d
Compare
Contributor
|
Avec un petit test ? 👀 |
xavfernandez
approved these changes
Jul 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 Pourquoi ?
Vu avec le support : connaître le type de compte d'où émane une demande de régulation NIR, directement sur la demande, donne plus de contexte au support.