Automatically save only changed model data.
Project description
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.0.0 (09/08/2013)
- Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django-save-the-change-1.0.0.tar.gz (4.6 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for django-save-the-change-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9245e161d5cad5b84ae9f9d200bf456380cc62e4bbe8acee6b1d6b8d6b7831cf |
|
MD5 | cb500d0cb5c1650a513d7226e007cae2 |
|
BLAKE2-256 | ac35fcb3dc4aebe535bdcc4cb1c474e4db7c9025893107ad701665d83d41c7ce |