On Wed, Mar 30, 2011 at 10:55 AM, George Karpenkov <true.chesh...@gmail.com> wrote: > Oh thanks Russel! > > Turns out django-tagging was creating those objects via the post-save > signal hook. > > http://code.djangoproject.com/ticket/8399 <- here is the ticket which > proposes an option to disable the signal handling during the loaddata > operation. > > Malcolm says that some people might want to use signals while running > loaddata - ie to create related objects. > > I don't really understand why anyone would want that -- the only use > case I've ever seen for the loaddata operation was "dump the entire > database -> load entire database", though I guess use cases differ. > > Any updated comments on disabling the signal handling for the loaddata > operation?
Rather simple fix to the signal handler: def on_something_saved(sender, instance, created, **kwargs): if not kwargs.get('raw', False): do_stuff() -- Patryk Zawadzki I solve problems. -- 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 django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.