Registry / web-framework / django-deprecated-field

django-deprecated-field

JSON →
library0.1.1pypypiunverified

Utility for marking Django DB fields as deprecated, enabling migration consistency with rolling deploys. Current version 0.1.1, supports Django 6, requires Python >=3.12. Low release cadence.

pip install django-deprecated-field
INSTALL
IMPORT
SIG · DJANGO-DEPRECATED-
D
django-deprecated-field
web-frameworkpythonv0.1.1
Install
3.4s avg
Import
Disk
63MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✕ build_error
py 3.12
✓ —
✓ 3.5s
py 3.13
✓ —
✓ 3.2s
py 3.9
✕ build_error
✕ build_error
63MB installed
● package 63MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DeprecatedField
from django_deprecated_field import DeprecatedField
from django_deprecated_field import DeprecatedField

Migrate old_field to new_field while allowing read access to old_field during rolling deploy.

from django.db import models from django_deprecated_field import DeprecatedField class MyModel(models.Model): old_field = DeprecatedField(models.CharField(max_length=100), replacement='new_field') new_field = models.CharField(max_length=100)
Debug
Known issues
gotchaUsing DeprecatedField without the `replacement` argument will not raise warnings on write, only reads of the deprecated field trigger the deprecation warning.
affects: >=0.1.0
breakingRequires Python >=3.12; older Python versions are not supported.
affects: 0.1.0+
gotchaDeprecatedField does NOT prevent writes to the deprecated field; it only warns on read. Write migration must be handled separately.
affects: >=0.1.0
Upgrade
Version history
0.1.1latest on PyPI · released Dec 9, 2025
Audit
Dependencies
djangorequiredCore dependency; works with Django 4.2+ but tested with 6.x
Agent activity
8 hits · last 30 days
node
8
Resources
django-deprecated-field — pip install django-deprecated-field · libregistry