Skip to content

Create mixin from _new_ method #410

Description

@duckduckgrayduck

class Event(models.IntegerChoices):
def new(cls, value, label=None, api=False):

This method is replicated in each Choices model. We can break it out into a mixin

Metadata

Metadata

Labels

No labels
No labels

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions