Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Json Patch support for Django models

Project Description

JSON Patch support for Django models.

Documentation

The full documentation is at https://django-json-patch.readthedocs.io.

Install

Install django-json-patch:

pip install django-json-patch

Usage

from json_patch.patch import Patch
from models import Author

authors = Author.objects.all()

add_author = [
    {
        'op': 'add',
        'path': '/0',
        'value': {
            'id': 1,
            'name': 'Bob'
        }
    }
]

patch = Patch(add_author_diff)
patch.apply(authors)

History

0.1.0 (2015-10-02)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.1.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting