diff options
| author | Tim Graham <timograham@gmail.com> | 2013-05-11 19:34:02 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-05-11 19:34:02 -0400 |
| commit | 2c62a509deb50e39375b0cd44cfc85a743978fdc (patch) | |
| tree | 58d3fd9771d2a85ad2e1848087431c85ad13dcb5 /django | |
| parent | 679a2ac843567d32c95ccc46a215bc453ccfa2d0 (diff) | |
Fixed #20136 - Fixed and expanded the docs for loaddata and model signals.
Thanks brandon@ and Anssi for the report.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/serializers/base.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/core/serializers/base.py b/django/core/serializers/base.py index 294934a04a..1e78026c40 100644 --- a/django/core/serializers/base.py +++ b/django/core/serializers/base.py @@ -161,9 +161,7 @@ class DeserializedObject(object): def save(self, save_m2m=True, using=None): # Call save on the Model baseclass directly. This bypasses any # model-defined save. The save is also forced to be raw. - # This ensures that the data that is deserialized is literally - # what came from the file, not post-processed by pre_save/save - # methods. + # raw=True is passed to any pre/post_save signals. models.Model.save_base(self.object, using=using, raw=True) if self.m2m_data and save_m2m: for accessor_name, object_list in self.m2m_data.items(): |
