Re: grabbing request while overriding save or in a signal

2010-04-30 Thread Nick Serra
Yeah, I realize this now hah. Instead I am now passing request into a ModelForm for what I need. Basically I have a comment system, and on each comment post I wanted to run it through Akismet, which required the IP and User Agent. So I just passed request into my form.save() method on comment adds.

Re: grabbing request while overriding save or in a signal

2010-04-30 Thread zinckiwi
> Hey everyone. I'm trying to access the request object while overriding > the save or tapping into the post_save on a model. I need request info > when someone posts a comment. But I don't just want to handle this in > my view, I would like it to be cleaner than that, so that > functionality would

grabbing request while overriding save or in a signal

2010-04-28 Thread Nick Serra
Hey everyone. I'm trying to access the request object while overriding the save or tapping into the post_save on a model. I need request info when someone posts a comment. But I don't just want to handle this in my view, I would like it to be cleaner than that, so that functionality would remain ev