-
-
Notifications
You must be signed in to change notification settings - Fork 250
removed leader and suggested leader, introduced entity_member model #2063
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0c604bc
removed leader and suggested leader, introduced entity_member model
abhayymishraa 24a5644
fixed tests
abhayymishraa c1ebcab
updated code
abhayymishraa edc12d1
code rabbit suggestion
abhayymishraa 95d6602
Merge branch 'main' into feat/entity_member
abhayymishraa 7129b3d
updated tests
abhayymishraa d6c0cbb
Merge branch 'main' into pr/abhayymishraa/2063
arkid15r b29348d
Update code
arkid15r 31a6f48
udpated code
abhayymishraa cf962fe
Merge branch 'main' into feat/entity_member
abhayymishraa cb56f82
Merge branch 'main' into pr/abhayymishraa/2063
arkid15r bb9ba92
Update code
arkid15r 059b096
Run pre-commit
arkid15r c47f541
added fields updated tests
abhayymishraa ce2dd47
added approve_members
abhayymishraa 6c80987
Merge branch 'main' into feat/entity_member
abhayymishraa 0668858
Merge branch 'main' into feat/entity_member
abhayymishraa 3af5d07
Update code
arkid15r 5722179
Update docker-compose/local.yaml
arkid15r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please restore bulk approval action functionality. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| """EntityMember admin configuration.""" | ||
|
|
||
| from django.contrib import admin | ||
|
|
||
| from apps.owasp.models.entity_member import EntityMember | ||
|
|
||
|
|
||
| class EntityMemberAdmin(admin.ModelAdmin): | ||
| """Admin for EntityMember records (generic link to any OWASP entity).""" | ||
|
|
||
| list_display = ( | ||
| "member", | ||
| "kind", | ||
| "is_reviewed", | ||
| "order", | ||
| ) | ||
| list_filter = ("kind", "is_reviewed") | ||
| search_fields = ("member__login", "member__name", "description", "object_id") | ||
| fields = ( | ||
| "content_type", | ||
| "object_id", | ||
| "member", | ||
| "kind", | ||
| "order", | ||
| "is_reviewed", | ||
| "description", | ||
| ) | ||
| autocomplete_fields = ("member",) | ||
|
|
||
abhayymishraa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| admin.site.register(EntityMember, EntityMemberAdmin) | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.