It's needed for the same reasons that the Model.save() method needs it. 
  When loading fixtures, you sometimes don't want to touch the incoming 
data.

For example, if I have a simple function connected to a pre_save signal 
that updates a timestamp:

def update_timestamp(instance, **kwargs):
     # Update the timestamp if we aren't loading from a fixture.
     if not kwargs.get('raw'):
         self.timestamp = datetime.now()
     return super(MyModel, self).save()

Without being able to check for raw, the update_timestamp would alter 
the timestamp dates from my fixture.

It looks like this change would be backwards-compatible because 
django.dispatch.robustapply.robustApply checks to see what arguments and 
keyword arguments the receiver accepts and only calls the receiver with 
those arguments.

Gary

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to