Hi everyone,

Syntax trouble. My post_save signal is defined as:

def scrub_directory(sender, instance, **kwargs):
    pass


When I attempt to pass a keyword arg to it:

models.signals.post_save.connect(scrub_directory, sender=TheModel,
{'my_kwarg' : 'some_value'})

I get a syntax error: keyword argument appeared after a non-keyword
argument. I don't understand how instance gets passed to the method,
but it's there if I print it out. No combination of placement of my
kwargs makes a difference, so I'd appreciate some help.

TIA,
Brandon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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