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.
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_intenumfield-2.0.1.tar.gz | 2.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity for django-intenumfield 2.0.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_intenumfield-2.0.1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.