On Thu, 2008-09-04 at 06:25 -0700, Webchemist wrote:
> Hi all!
> 
> Trying the fallowing:
> 
> from django.db.models import signals
> print dir(signals.post_save)
> gives:
> ['__class__', '__delattr__', '__doc__', '__getattribute__',
> '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__',
> '__repr__', '__setattr__', '__str__']
> 
> and
> 
> print signals.post_save.connect
> 
> gives:
> AttributeError: 'object' object has no attribute 'connect'
> 
> How can I use signals now?

Something's not quite right in the code you're running. Either you are
running an older version of Django, or you don't have a complete
install, because "connect" certainly is an attribute on the post_save
signal. If that ever stopped working, it would take about seven seconds
for the complaints to start coming in.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to