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

form: add options for multiple users and groups #1726

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Tagadda
Copy link
Contributor

@Tagadda Tagadda commented Oct 13, 2023

The problem

  • Sometimes we want to select multiple users and groups

Solution

Add options to be rendered as tags in the webadmin:

  • AppsOption
  • UsersOption
  • GroupsOption
  • UsersAndGroupsOption

PR Status

Yolocommit

How to test

...

for group in user_group_list(short=True, include_primary_groups=False)["groups"]
}

self.choices = {**users, **groups}

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute choices, which was previously defined in superclass
BaseChoicesOption
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant