Skip to main content

Django IntEnumField

An IntEnumField for Django.

Features

  • Store your multiple-choice options as a smallint (2 bytes) instead of varchar
  • Reuse existing IntEnums as choice values
  • Integrates well with Django's admin app (display and filter)

Requirements

  • Python 3.8+
  • Django 2.2+

Usage

from enum import IntEnum
from django.db import models
from django_intenum import IntEnumField


class Status(IntEnum):
	UNKNOWN = 0
	IN_PROGRESS = 1
	COMPLETED = 2
	ERROR = 3


class Job(models.Model):
	status = IntEnumField(enum=Status)

License

This project is licensed under the MIT license. The full license text is available in the LICENSE file.

Release files for django-intenumfield 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-intenumfield 2.0.1
File Size Uploaded
django_intenumfield-2.0.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-intenumfield 2.0.1
File Interpreter ABI Platform
django_intenumfield-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / django_intenumfield-2.0.1.tar.gz

Download URL django_intenumfield-2.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
890e9aa7fa4bd1e58f9522b2bb388da4591b1720e1992d0248d621be342b3688
BLAKE2b-256 checksum
How to use checksums
b64fd91b723c1d8419ab2fb825f71096becdbbdd61f02214a51e825d7a46db35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / django_intenumfield-2.0.1-py3-none-any.whl

Download URL django_intenumfield-2.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01922cbc7266b8fa03115faae65621b0eb38e2c5b759c980b95b81cd116ad433
BLAKE2b-256 checksum
How to use checksums
e866764dc782d599f112b85c592df995d94ef77fe7a3ce5b70c2e1663afb08ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1

2 release files

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page