Skip to content

Commit

Permalink
Fixed #7212 -- Added alters_data attribute to Model.save_base met…
Browse files Browse the repository at this point in the history
…hod, thanks Gulopine.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
gdub committed May 13, 2008
1 parent 41635d2 commit d78e61e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/db/models/base.py
Expand Up @@ -339,6 +339,8 @@ def save_base(self, raw=False, cls=None):
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.
Expand Down

0 comments on commit d78e61e

Please sign in to comment.