Enumeration & state fields

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

Features currently being evaluated

FeatureDescription
PEP435-style enum Uses real Python 3.4+ PEP435-style enum's
Integer backed Uses integer field as backing store
String backed Uses string field as backing store
ForeignKey backed Uses ForeignKey field as backing store
Custom class style enum Uses a custom enum base class
Finite state machine Supports (simple) finite state machine transitions
Custom labels Add custom labels to enum values
Queryset lookups Can be used with queryset lookups and filters
Form integration Usable in forms (choices)
Admin integration Usable in admin list filters
Package django-fsm django-enumfield django-enumfields django-enum-choices django-echoices django-enum-field django-enum3field
Package django-fsm django-enumfield django-enumfields django-enum-choices django-echoices django-enum-field django-enum3field
Description Django friendly finite state
machine support
Custom Django field for using
enumerations of named
constants
Real Python Enums for Django Django choice field that
supports Python enumerations
Django model choices as Enum A Django field for use with
https://github.com/2degrees/python-enumeration.
A Django 1.7+ model field for
use with Python 3 enums.
CategoryAppAppOtherAppOtherAppOther
# Using This13300000
Python 3?
Development Status Production/Stable Unknown Unknown Unknown Production/Stable Unknown Unknown
Last updated June 21, 2021, 5:28 a.m. Sept. 3, 2020, 3:24 a.m. Feb. 23, 2021, 1:40 a.m. Dec. 19, 2020, 10:44 a.m. Aug. 18, 2021, 1:30 p.m. April 11, 2017, 11:16 a.m. March 15, 2015, 9:28 a.m.
Version2.7.12.0.22.1.12.1.32.8.00.20.1.1
RepoGitHubGitHubGitHubGitHubGitHubGitHubGitHub
Commits
Stars18261831446731n/a
Repo Forks255445511n/an/a1
Participantskmmbvnr
knaperek
frague59
ticosax
kaharlichenko
blueyed
DariaKnyazeva
llybin
scotta
seddonym
more...
Swamii
hannseman
andreif
lundberg
kjagiello
fcurella
thedrow
nicolasgrasset
lamby
piotrpawlaczek
more...
akx
matthewwithanm
mturilin
johnthagen
EvaSDK
talebbits
gsakkis
ehaivala
Tim-Erwin
samh
more...
slavov-v
RadoRado
wencakisa
SaturnFromTitan
wiedi
yukikaoru
alexa984
dependabot[bot]
mbourqui
vdboor
franciscoruiz
gnarea
JoshData
Documentation N/A N/A N/A N/A N/A N/A
PEP435-style enumfuture
Integer backed
String backed
ForeignKey backed
Custom class style enumextend enumExtends Enum
Finite state machinemain use-casesimple
Custom labelsdepends on enum
Queryset lookups
Form integration
Admin integrationpartial, extended via django-fsm-adminwith boilerplate
Search WeightPackageDescriptionLast PyPI release:Repo ForksStars
{{ 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