Firts of all, great software that's been keeping nearly without sleep
for 3 days :)

I'm building my first app with django and I'm stuck at one point:

I want to be able to store de current user (the one that's logged in
the admin area) in an object as a 'created_by' field. I thought about
doing it in the object's  _pre_save hook but, after googling and
reading through the source (with my below-average python skills) I
can't find how can I access session data from within the models.

>From the views is easy: request.session... but from the model's hooks?

Kind regards,
Alberto

Reply via email to