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-field django-enum3field
Package django-fsm django-enumfield django-enumfields 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 A Django field for use with
https://github.com/2degrees/python-enumeration.
A Django 1.7+ model field for
use with Python 3 enums.
CategoryAppAppOtherAppOther
# Using This92000
Python 3?
Development Status Production/Stable Unknown Unknown Unknown Unknown
Last updated April 19, 2019, 7:25 a.m. Dec. 21, 2018, 9:12 a.m. Nov. 29, 2018, 12:34 p.m. April 11, 2017, 11:16 a.m. March 15, 2015, 9:28 a.m.
Version2.6.11.51.0.00.20.1.1
RepoGithubGithubGithubGithubGithub
Commits
Stars12931351171n/a
Repo Forks1993944n/a1
Participantskmmbvnr
knaperek
frague59
ticosax
kaharlichenko
kiss90benedek
blueyed
DariaKnyazeva
scotta
seddonym
more...
hannseman
Swamii
andreif
lundberg
thedrow
fellowshipofone
kjagiello
piotrpawlaczek
adamJLev
bh
more...
akx
matthewwithanm
mturilin
EvaSDK
talebbits
ehaivala
Tim-Erwin
samh
diwu1989
jackdbernier
more...
franciscoruiz
gnarea
JoshData
Documentation N/A N/A N/A N/A
PEP435-style enumfuture
Integer backed
String backed
ForeignKey backed
Custom class style enumextend 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