summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-05-13 14:56:47 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-05-13 14:56:47 +0000
commitd78e61e8bb93ec9fc93071eefb3b449201e786ea (patch)
tree0af0caeca957b6f79c3d09045fe77f456f288805
parent41635d2176f7a950498b020f335232ad9f734279 (diff)
Fixed #7212 -- Added `alters_data` attribute to `Model.save_base` method, thanks Gulopine.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/models/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 181d845932..0ee225675a 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -339,6 +339,8 @@ class Model(object):
dispatcher.send(signal=signals.post_save, sender=self.__class__,
instance=self, created=(not record_exists), raw=raw)
+ save_base.alters_data = True
+
def validate(self):
"""
First coerces all fields on this instance to their proper Python types.