﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32123	Add properties `is_xxx` for django.db.models.enums	Kwist	Kwist	"For example:
{{{#!python
from django.db import models

class Suit(models.IntegerChoices):
    DIAMOND = 1, _('Diamond')
    SPADE = 2, _('Spade')
    HEART = 3, _('Heart')
    CLUB = 4, _('Club')
}}}

This feature allows use
{{{#!python
if value.is_heart: 
    ...
}}}

instead of
{{{#!python
if value == Suit.HEART: 
    ...

if value is Suit.HEART: 
    ...

if value == 3: 
    ...
}}}"	New feature	closed	Database layer (models, ORM)	3.1	Normal	wontfix	enums		Unreviewed	1	0	0	0	0	0
