#27312: Checking raw argument to prevent signals from executing during fixture
loading isn't DRY
-------------------------------------+-------------------------------------
     Reporter:  Álex Córcoles        |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Core (Other)         |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:  fixtures signals     |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * type:  Uncategorized => Cleanup/optimization
 * component:  Uncategorized => Core (Other)


Comment:

 In a past project, I used the [http://stackoverflow.com/a/15625121/5112
 @disable_for_loaddata] decorator.

 I don't have a strong feeling about whether some solution should live in
 Django. Maybe you'd like to make a proposal on the DevelopersMailingList
 to get other opinions.

--
Ticket URL: <https://code.djangoproject.com/ticket/27312#comment:4>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.050059f48285f8c76e10c98249896547%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to