#5422: Passing raw flag as an additional parameter to post_save & pre_save 
signals
------------------------------------------+---------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody          
  Status:  new                            |   Component:  Database wrapper
 Version:  SVN                            |    Keywords:                  
   Stage:  Unreviewed                     |   Has_patch:  1               
------------------------------------------+---------------------------------
 Signal handlers attached to pre_save & post_save signals are called when
 data is loaded from a fixture. If these signal handlers attempt to
 query/modify other records in the database then they may have problems as
 the database might not yet be in a consistent state if the fixture hasn't
 completed loading.
 
 Work resulting from ticket #4495 avoided the calling of a custom save
 method when loading fixtures to avoid this same problem.
 
 By passing the raw flag as an additional parameter to the signal handlers
 their implementations could decide whether to do any work and so avoid
 data consistency problems when the raw flag is True.
 
 This change is unlikely to cause problems with existing signal handlers as
 named arguments are only passed to handlers that have those as parameters.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5422>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to