Re: Signals Question - Firing off an email after a save

2007-09-03 Thread Jeremy Dunck
On 9/3/07, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > save() is method, so it must get at least one parameter - self. > def save( self ): >... Sorry, I was sloppy. :-/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Signals Question - Firing off an email after a save

2007-09-03 Thread Alex Koshelev
save() is method, so it must get at least one parameter - self. def save( self ): ... > > TypeError at /admin/envwork/environment/12/ > save() takes no arguments (1 given) > > Any thoughts? > --~--~-~--~~~---~--~~ You received this message because you are

Re: Signals Question - Firing off an email after a save

2007-09-03 Thread Jack E. Wilkinson
Thank you for the response Jeremy! Your solution seems the most graceful and efficient. However it looks like I may be doing something wrong... :-( Here is the modification... ... class Environment(models.Model): short_name = models.CharField("Short Name", maxlength=8, blank=False,

Re: Signals Question - Firing off an email after a save

2007-09-02 Thread Jeremy Dunck
On 9/2/07, Jack E. Wilkinson <[EMAIL PROTECTED]> wrote: ... > I've got a very simple model, two databases and I'm using the admin > interface. What I need is when one of the databases gets a change made > to it, for an email to be sent out to a specific group (the group never > changes, however,

Re: Signals Question - Firing off an email after a save

2007-09-02 Thread Thejaswi Puthraya
> I've got a very simple model, two databases and I'm using the admin > interface. What I need is when one of the databases gets a change made > to it, for an email to be sent out to a specific group (the group never > changes, however, the subject and message content should change). Use Django

Signals Question - Firing off an email after a save

2007-09-02 Thread Jack E. Wilkinson
Good day, Being a *VERY* new admirer of Django, I've started an application that I've gotten slightly hung on due to a lack of understanding the documentation. I've got a very simple model, two databases and I'm using the admin interface. What I need is when one of the databases gets a change