Skip to main content

django-form-copy

Library for quickly copying django objects from one to another project.

How to use:

  1. Add library in INSTALLED_APPS.
INSTALLED_APPS = [
    ...
    "django_form_copy",
]
  1. After added the application - just add a mixin CopyPasteMixin where you register your application for the admin panel.
# admin.py
from django_form_copy import CopyPasteMixin

@admin.register(YourModel)
class YourModelAdmin(CopyPasteMixin, admin.ModelAdmin):
    ...
    # your other attributes

After you want to copy an object, go to edit the model object and click the Copy button. copy.png Once the data is saved to the clipboard, you can go to any similar project and recreate this object. For example, you use "stage" on another server or "localhost" on your personal computer. Click on the "+" to add object in admin panel, click on the Paste button to recreate this object with all relations (including ForeignKey and ManyToMany - these will be created if not found on your other server). paste.png

Metadata

Release files for django-form-copy 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-form-copy 0.1.7
File Size Uploaded Provenance Actions
django-form-copy-0.1.7.tar.gz 7.4 kB Without provenance Details for django-form-copy-0.1.7.tar.gz

Release files / django-form-copy-0.1.7.tar.gz

Download URL django-form-copy-0.1.7.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e924d943748ba17ca984fb151de668b554ab3a7aa2760057401995ee601af11
BLAKE2b-256 checksum
How to use checksums
7c9fd161b50a44fdf5742c826da7eddb9942d8aaf83440b213b02d1d572d9a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Security for django-form-copy 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page