On Sep 12, 2005, at 3:40 PM, Alberto Valverde wrote:

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.


Right now, unfortunately, this isn't possible.

Simon had a proposal a few days ago that touched on this, and chances are that it or something like it will get added at some point -- stay tuned!

Jacob

Reply via email to