From d78e61e8bb93ec9fc93071eefb3b449201e786ea Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Tue, 13 May 2008 14:56:47 +0000 Subject: [PATCH] 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 --- django/db/models/base.py | 2 ++ 1 file changed, 2 insertions(+) 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.