django-add-default-value
This django Migration Operation can be used to transfer a fields default value to the database scheme.
Decision gist · record as of 2026-08-14
Yes, if you are on Django 1.11–3.2 and need to set database-level defaults during migrations. No, if you are on a newer Django version—the package is dormant and has not been tested or updated for Django 4.0+. Check your Django version against the classifiers before installing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single Django dependency.
- Maintenance is dormant—last release was 2022-02-02 and no commits since 2024-03-20—so expect no active support or updates for newer Django versions.
License · maintenance · safety
Apache-2.0 (permissive) — Released under Apache 2.0 (permissive), so you can use, modify, and distribute it freely in commercial and private projects without restriction.
last release 2022-02-02 (1654 days) · last repo commit 2024-03-20 · 138 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 326,397 downloads/mo, #7,577 on PyPI
Alternatives
Verify before relying
pip install django-add-default-value
In your migration file:
from django_add_default_value import AddDefaultValue
operations = [
migrations.AddField(...),
AddDefaultValue(
model_name='my_model',
name='my_field',
value='my_default'
)
]- Whether the package works with Django versions released after 2022 (classifiers list only up to 3.2)
- Current test coverage and whether MSSQL support has been validated since the 'currently not tested' note
What it is and what it does
django-add-default-value is a Django migration operation that lets you set default values at the database level when adding new fields to existing tables. Instead of relying on Django's ORM default (which only applies to new rows created through Django), this operation runs a SQL ALTER TABLE statement to set the default in the schema itself, ensuring backward compatibility and consistency across all database access patterns.
You use it by adding an AddDefaultValue operation to your migration file after the AddField operation. It supports MySQL, PostgreSQL, CockroachDB, and MSSQL. The package has been dormant since early 2022, so while it remains functional for the Django versions it was tested against, there is no active maintenance or support for newer Django releases.
Use it for
- Adding a required field with a default value to an existing Django model without breaking existing code or database queries
- Ensuring database-level consistency when a field default must apply to all rows, not just those created through Django ORM
- Migrating legacy schemas where the database itself needs to enforce default values independent of application logic
- Handling backward compatibility in production deployments where you need to add a column with a safe default without downtime
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are on Django 1.11–3.2 and need to set database-level defaults during migrations.
No, if you are on a newer Django version—the package is dormant and has not been tested or updated for Django 4.0+. Check your Django version against the classifiers before installing.
Install
django-add-default-value on PyPI
Before you install
Low install friction with a single Django dependency. Maintenance is dormant—last release was 2022-02-02 and no commits since 2024-03-20—so expect no active support or updates for newer Django versions.
License in practice
Released under Apache 2.0 (permissive), so you can use, modify, and distribute it freely in commercial and private projects without restriction.
Quickstart
pip install django-add-default-value
In your migration file:
from django_add_default_value import AddDefaultValue
operations = [
migrations.AddField(...),
AddDefaultValue(
model_name='my_model',
name='my_field',
value='my_default'
)
]
Verify before relying
- Whether the package works with Django versions released after 2022 (classifiers list only up to 3.2)
- Current test coverage and whether MSSQL support has been validated since the 'currently not tested' note
Package facts
| License | Apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageDjango |
| Maintenance | Dormant 1,654 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 326,397 / month, #7,577 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 1.11Framework :: Django :: 2.0Framework :: Django :: 2.1Framework :: Django :: 2.2Framework :: Django :: 3.0Framework :: Django :: 3.1Framework :: Django :: 3.2Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: django_add_default_value-0.10.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django migration default value”
- django-add-default-valueProvides a Django migration operation to set database-level default…
- django-syzygyAutomates Django database migration deployment by splitting…
- django-deprecate-fieldsProvides a decorator to mark Django model fields as deprecated,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-deprecate-fields · django-syzygy · django-safemigrate · django-concurrency · django-citext · django-migration-linter · django-soft-delete · django-sequences · django-linear-migrations · swapper