{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Duplicates Django model instances with fine-grained control over which fields and relationships are copied, automatically handling unique field conflicts.","skillfed_tags":["django-orm","model-duplication","admin-integration"],"use_cases":["Duplicate a product listing in an e-commerce app while automatically handling unique SKU fields.","Clone a survey or form template with all its questions and options, excluding responses.","Create a copy of a project or task in a project management tool without duplicating timestamps or status fields.","Bulk-clone model instances across multiple databases in a multi-tenant application.","Add a 'Duplicate' action to Django Admin for quick instance copying with controlled field selection."],"what_it_does":"django-clone provides a mixin and model base class that lets you duplicate Django model instances with explicit control over which fields and relationships get copied. Instead of the naive `instance.pk = None; instance.save()` approach\u2014which copies more state than intended\u2014this package lets you specify exactly which fields, many-to-many relationships, and one-to-many relationships should be included in the clone. It automatically detects unique fields and appends a suffix to avoid constraint violations.\n\nThe package integrates with Django Admin, allowing cloning directly from list and change views. It supports multi-database operations, signals for pre- and post-clone hooks, and both explicit (include-only) and implicit (exclude-only) field selection. It has been actively maintained since its first release, supports Django 2.x through 4.x, and works with Python 3.6 and later.","worth_installing":"Yes. The package solves a real Django problem (safe model duplication) with low install friction, active maintenance, no known vulnerabilities, and permissive licensing. It is well-tested and integrates cleanly with Django Admin. Install it if you need to duplicate model instances with control over which fields and relationships are copied."},"id":"django-clone","links":{"html":"https://skillfed.io/packages/django-clone","md":"https://skillfed.io/packages/django-clone.md","pypi":"https://pypi.org/project/django-clone/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-06-10","license_spdx":null,"license_treatment":"permissive","name":"django-clone","python_support":"supports_current","summary":"Create a clone of a django model instance."},"popularity":{"monthly_downloads":221419,"position":9278,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.5.0"}
