Skip to main content
https://badge.fury.io/py/django-save-the-change.png https://travis-ci.org/karanlyons/django-save-the-change.png?branch=master https://coveralls.io/repos/karanlyons/django-save-the-change/badge.png?branch=master

Save The Change takes this:

>>> lancelot = Knight.objects.get(name="Sir Lancelot")
>>> lancelot.favorite_color = "Blue"
>>> lancelot.save()

And does this:

UPDATE "roundtable_knight"
SET "favorite_color" = 'Blue'

Instead of this:

UPDATE "roundtable_knight"
SET "name" = 'Sir Lancelot',
    "from" = 'Camelot',
    "quest" = 'To seek the Holy Grail.',
    "favorite_color" = 'Blue',
    "epithet" = 'The brave',
    "actor" = 'John Cleese',
    "full_name" = 'John Marwood Cleese',
    "height" = '6''11"',
    "birth_date" = '1939-10-27',
    "birth_union" = 'UK',
    "birth_country" = 'England',
    "birth_county" = 'Somerset',
    "birth_town" = 'Weston-Super-Mare',
    "facial_hair" = 'mustache',
    "graduated" = true,
    "university" = 'Cambridge University',
    "degree" = 'LL.B.',

Installation

Install Save The Change just like everything else:

$ pip install django-save-the-change

Documentation

Full documentation is available at ReadTheDocs.

History

1.1.0 (05/16/2014)

  • Add proper support for ForeignKeys (thanks to Brandon Konkle and Brian Wilson).

  • Add update_together field to model Meta, via UpdateTogetherModel.

1.0.0 (09/08/2013)

  • Initial release.

Metadata

Release files for otree-save-the-change 1.1.1

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

Source distribution (sdist)

Source distribution for otree-save-the-change 1.1.1
File Size Uploaded
otree-save-the-change-1.1.1.zip 11.5 kB Details

Release files / otree-save-the-change-1.1.1.zip

Download URL otree-save-the-change-1.1.1.zip
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
096a9788ce9891e2cad87130afbfa79dcf1bce0ebffcf960ca4840ddc4071e5f
BLAKE2b-256 checksum
How to use checksums
b8adcc8d427bb4aef85d09534d664800ddb81b96a9b43fd6f20305624deade84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0.0

1 release file

1.1.3

1 release file

1.1.2

1 release file

This release

1.1.1 This release

1 release file

1.1.0

1 release file

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