{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks"}],"enrichment":{"capability":"Provides reusable model mixins and field utilities for Django applications, including soft-delete models, field tracking, status management, and inheritance helpers.","skillfed_tags":["django-orm","model-utilities","soft-delete"],"use_cases":["Add automatic created/modified timestamps to models without writing custom save() logic.","Implement soft-delete functionality where records are marked deleted but retained in database.","Track which fields on a model instance have changed since it was loaded or last saved.","Define status or state fields with predefined choices and automatic change-date tracking.","Query model inheritance hierarchies efficiently without N+1 queries.","Generate URL-safe tokens for password resets or one-time links."],"what_it_does":"django-model-utils is a collection of reusable model mixins and field types that extend Django's built-in model capabilities. It provides utilities like TimeStampedModel (automatically adds created/modified timestamps), SoftDeletableModel (logical deletion without removing data), FieldTracker (monitors field changes), and StatusField (manages state transitions). It also includes managers for model inheritance queries and utilities for working with choices and UUID fields.\n\nThe library is designed to reduce boilerplate in common Django patterns. Rather than reimplementing field tracking or soft-delete logic in every project, developers import the relevant mixin or field type into their models. It has minimal dependencies\u2014only Django itself\u2014and integrates directly into Django's ORM, so queries and migrations work as expected. The package is actively maintained, supports current Django and Python versions, and carries no known security vulnerabilities.","worth_installing":"Yes. django-model-utils is a well-maintained, widely-used library that solves genuine repetitive problems in Django development. It has low install friction, no security vulnerabilities, a permissive license, and active support for current Django and Python versions. Install it if your project uses Django and you need any of its utilities\u2014field tracking, soft deletes, timestamped models, or status management."},"id":"django-model-utils","links":{"html":"https://skillfed.io/packages/django-model-utils","md":"https://skillfed.io/packages/django-model-utils.md","pypi":"https://pypi.org/project/django-model-utils/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-09-04","license_spdx":null,"license_treatment":"permissive","name":"django-model-utils","python_support":"supports_current","summary":"Django model mixins and utilities"},"popularity":{"monthly_downloads":4882604,"position":2208,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"5.0.0"}
