Enumeration & state fields

Fields for enum's, enumerations, states and named constants.

Features currently being evaluated

Feature Description
Custom labels Add custom labels to enum values
Queryset lookups Can be used with queryset lookups and filters
Admin integration Usable in admin list filters
Form integration Usable in forms (choices)
PEP435-style enum Uses real Python 3.4+ PEP435-style enum's
Custom class style enum Uses a custom enum base class
ForeignKey backed Uses ForeignKey field as backing store
Finite state machine Supports (simple) finite state machine transitions
Integer backed Uses integer field as backing store
String backed Uses string field as backing store

Filter results

Package django-fsm django-enumfield django-enum-choices django-enumfields django-echoices
Package django-fsm django-enumfield django-enum-choices django-enumfields django-echoices
Description Django friendly finite state
machine support
Custom Django field for using
enumerations of named
constants
Django choice field that
supports Python enumerations
Real Python Enums for Django Django model choices as Enum
Category App App App Other Other
# Using This 13 3 0 0 0
Python 3?
Development Status Production/Stable Unknown Unknown Unknown Production/Stable
Last updated Aug. 15, 2022, 6:45 a.m. May 30, 2022, 4:35 a.m. May 4, 2022, 8:01 a.m. Feb. 23, 2021, 1:40 a.m. Aug. 18, 2021, 1:30 p.m.
Version 2.8.1 3.0 2.1.4 2.1.1 2.8.0
Repo GitHub GitHub GitHub GitHub GitHub
Commits
Stars 2,067 192 69 146 3
Repo Forks 279 46 10 55 0
Participants kmmbvnr
knaperek
ticosax
frague59
kaharlichenko
blueyed
DariaKnyazeva
llybin
scotta
seddonym
more...
Swamii
hannseman
andreif
lundberg
kjagiello
fcurella
thedrow
nicolasgrasset
lamby
piotrpawlaczek
more...
slavov-v
RadoRado
wencakisa
SaturnFromTitan
wiedi
yukikaoru
alexa984
dependabot[bot]
kpacup
akx
matthewwithanm
mturilin
johnthagen
EvaSDK
talebbits
gsakkis
ehaivala
samh
diwu1989
more...
mbourqui
vdboor
Documentation n/a n/a n/a n/a n/a
Custom labels depends on enum
Queryset lookups
Admin integration partial, extended via django-fsm-admin with boilerplate
Form integration
PEP435-style enum future
Custom class style enum extend enum Extends Enum
ForeignKey backed
Finite state machine main use-case simple
Integer backed
String backed
Search Weight Package Description Last PyPI release: Repo Forks Stars
{{ item.weight / max_weight * 100 | number:0 }}% {{ item.title }} Grid: {{ item.description }} {{ item.last_released | date: 'mediumDate' }} N/A {{ item.repo_forks }} N/A {{ item.repo_watchers }} N/A