﻿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
31512	Django TextChoices cannot utilize `is` or `==` isn't explicitly stated	Casper Weiss Bang	nobody	"i was reading about the ""new"" enums feature here:
     https://docs.djangoproject.com/en/3.0/ref/models/fields/#enumeration-types
And wanted to utilize it. However i tried to use `is` to check for equality rather than `in`. That made it impossible to utilize before i realized that the returned type from the CharField is, naturally, a char, and that i could check for equality with `in`:  `self.year_in_school in self.YearInSchool.JUNIOR`

This probably isn't the most beautiful thing though, and it wasn't really stated that this is the defacto way to check for equality (lest i use `self.year_in_school in self.YearInSchool.JUNIOR.value`. 

It would be quite nice if the `self.year_in_school` type actually was of type ENUM, or at least had documented how you could check for equality with them.

The current solution seems, sadly, hacky at best.
"	Bug	closed	Database layer (models, ORM)	3.0	Normal	invalid			Unreviewed	0	0	0	0	0	0
