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.
> 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
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
3 matches
Mail list logo