diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-09 00:03:03 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-09 00:03:03 +0000 |
| commit | 35f934f5a7d9eb79a69f33de84854aa9a506b912 (patch) | |
| tree | 3f699805b985a659e8343da32c3820d1c63923f7 /django/db/models/base.py | |
| parent | cee31735f768322e2239857195cdb36e1fecc850 (diff) | |
Pass values through get_db_prep_save() in a QuerySet.update() call.
This removes a long-standing FIXME in the update() handling and allows for
greater flexibility in the values passed in. In particular, it brings updates
into line with saves for django.contrib.gis fields, so fixed #10411.
Thanks to Justin Bronn and Russell Keith-Magee for help with this patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/base.py')
| -rw-r--r-- | django/db/models/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index e704db2918..c02ca04b1e 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -499,6 +499,8 @@ class Model(object): setattr(self, cachename, obj) return getattr(self, cachename) + def prepare_database_save(self, unused): + return self.pk ############################################ |
