Skip to content

Accept subset of the Enum values #89

@ADR-007

Description

@ADR-007

Hi there,

I propose to change this
kwargs['choices'] = tuple((e.value, getattr(e, 'label', e.name)) for e in self.enum)
to this
kwargs['choices'] = tuple((e.value, getattr(e, 'label', e.name)) for e in kwargs.get('choices', self.enum))
to have posibility accept only part of the enum.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions