Chris Lamb

django-enumfield

BlogProjectsAbout

View all my projects »

Type-safe, efficient & database-agnostic enumeration field for Django.


Enumerations are a powerful tool, avoiding magic strings that are prone to typos, etc. Whilst modern database engines support enumerations, providing a higher-level interface in Django based around an integer database field ensures support for all engines.

You can install django-enumfield from PyPI:

$ pip install django-enumfield-ng
… or by adding django-enumfield-ng to your requirements.txt and re-running pip install -r requirements.txt.

You can browse the source tree, create or file bugs or download the code from Git:

$ git clone https://github.com/lamby/django-enumfield

django-enumfield is released under the MIT license.

View all my projects »