#20136: Recommend note identifying that post_save signals will be fired on 
loaddata
-------------------------------+----------------------
     Reporter:  brandon@…      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.5
     Severity:  Normal         |   Keywords:  loaddata
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+----------------------
 On: https://docs.djangoproject.com/en/dev/ref/django-admin/#loaddata-
 fixture-fixture

 It says the following:

 * When fixture files are processed, the data is saved to the database as
 is. Model defined save methods and pre_save signals are not called.

 However, it does not make specific mention about other signals. Recommend
 making the text explicit so that readers understand that other signals not
 mentioned here will be called (post_save et al).

 Example:

 Let's say you're testing on a local server and you have use post_save to
 send emails or other notifications. loaddata will resend all emails on
 load. This is behaviour that, in a test environment, one may wish to
 avoid.

 Related: https://code.djangoproject.com/ticket/8399

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20136>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to