Created
March 28, 2025 19:38
-
-
Save victoraguilarc/b3f374fa7b2724a3fdb77c9ef5404046 to your computer and use it in GitHub Desktop.
Multiselect en el admin
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
class NotificationORMForm(forms.ModelForm): | |
... | |
class Meta: | |
model = NotificationORM | |
fields = ( | |
'tenant', | |
... | |
) | |
widgets = { | |
'strategies': ArrayFieldSelectMultiple( | |
verbose_name=_('Strategies'), | |
attrs={'class': 'chosen'}, | |
choices=NotificationStrategy.choices(), | |
), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment