Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple Enums for Django when working with choices in model fields.

Project Description

# Django Enumerify #

## Installation ##

pip install django-enumerify

## Usage ##


# .../app/

from django.utils.translation import gettext as _

from enumerify.enum import Enum

class GroupKind(Enum):

i18n = (

# .../app/

from django.db import models

from enumerify import fields

from .enums import GroupKind

class Group(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField()
description = models.TextField()
kind = fields.SelectIntegerField(blueprint=GroupKind, default=GroupKind.PUBLIC)
created_at = models.DateTimeField(auto_now_add=True, db_index=True)

def __unicode__(self):
return u"Group: %s" % self.title


## Tests ##

$ python testapp/tests/

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.7 kB) Copy SHA256 Hash SHA256
Source None Jul 8, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting