A Django app for adding object tools for models in the admin
Project description
dj-obj-update is a module that helps you do two things while updating an object:
Only do a save if something changed
Log what changed (the logger name is obj_update and only outputs DEBUG)
Installation
pip install dj-obj-update
Usage
from obj_update import update new_data = { 'flavor': 'chocolate', } for obj in queryset: update(obj, new_data)
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.
Source Distribution
dj-obj-update-0.1.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for dj_obj_update-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd33a0ae45c264fa66ce5a8d7f1614673de9c86bdc38a710cfda9912fc320dd |
|
MD5 | 0699d8e4d09996f3c6fda393eccc79e4 |
|
BLAKE2b-256 | 69a4e9eef5a116e765a9132e8cd0b5786c34e29bf59d9ccfcc1d475448d73bda |