{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/9"}],"enrichment":{"capability":"Tracks which fields on a Django model instance have been modified in memory but not yet saved to the database, providing methods to check dirty status and retrieve changed field values.","skillfed_tags":["django-orm","change-tracking"],"use_cases":["Check if a model instance has unsaved changes before deciding whether to call save().","Audit which fields were modified on an instance for logging or change-tracking systems.","Conditionally trigger side effects only when specific fields change.","Implement undo/rollback logic by comparing dirty fields to their original database values.","Validate that certain fields have not been modified before allowing a save operation."],"what_it_does":"Django Dirty Fields is a mixin that tracks in-memory changes to Django model instances, letting you detect which fields differ from their database values without querying the database. You inherit from DirtyFieldsMixin on any model, then call is_dirty() to check if the instance has unsaved changes or get_dirty_fields() to retrieve a dictionary of changed field names and their original values.\n\nThis is useful for conditional logic around saves, audit trails, or avoiding unnecessary database writes. The package has been in production use since its early releases and is tested against a wide range of Django and Python versions. It requires only Django as a dependency and installs as a lightweight pure-Python wheel.","worth_installing":"Yes. The package is production-stable, actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common Django pattern cleanly. Use it when you need to detect in-memory changes to model instances without extra database queries."},"id":"django-dirtyfields","links":{"html":"https://skillfed.io/packages/django-dirtyfields","md":"https://skillfed.io/packages/django-dirtyfields.md","pypi":"https://pypi.org/project/django-dirtyfields/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-22","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"django-dirtyfields","python_support":"supports_current","summary":"Tracking dirty fields on a Django model instance."},"popularity":{"monthly_downloads":670955,"position":5406,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.9.9"}
