Hi,

After migrate an application from Django 1.1 to Django 1.3 I noticed that
some unittest was failing. Debugging I get to the point that the post_save
functions didn't execute on test running. If I see the receivers on the test
execution:

ipdb> from django.db.models import signals
ipdb> signals.post_save.receivers
[]

But, seeing it on a ./manage.py shell:

In [4]: signals.post_save.receivers
Out[4]:
[((148050580, 135782264),
  <weakref at 0x8d2eb1c; to 'function' at 0x8d31294 (post_save_handler)>),
 ((148158980, 148372636),
  <weakref at 0x8d479dc; to 'function' at 0x8d4ba04 (save_plugin_signal)>),
 (((149066668, 149046916), 148893804),
  BoundMethodWeakref( <stdimage.fields.StdImageField object at
0x8e293ac>._rename_resize_image )),
 (((150046508, 147356780), 150265060),
  BoundMethodWeakref( <tagging.fields.TagField object at 0x8f1872c>._save )),
 (((150338604, 149046916), 150285820),


And a lot more... I check that the post_save signal is registering properly
on the test execution, but when you access to it, is empty.

Any ideas?

Thanks in advance

-- 
Pablo Recio Quijano

Desarrollador Django
Yaco Sistemas - http://www.yaco.es/

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

Reply via email to