save and session

2005-12-12 Thread Dody Suria Wijaya
Is it possible in djanggo to access current request's session variables inside _pre_save or _post_save function? I need to save current login userid into a "last_update_userid" field automatically by simply calling .save() Thanks -- dsw

Re: save and session

2005-12-12 Thread plisk
Dody Suria Wijaya wrote: Is it possible in djanggo to access current request's session variables inside _pre_save or _post_save function? I need to save current login userid into a "last_update_userid" field automatically by simply calling .save() Try hack in this thread http://gro

Re: save and session

2005-12-12 Thread Dody Suria Wijaya
Thanks, I'll paste it here: class ModelsAddRequest: def process_request(self, request): for x in dir(django.models.intranet): klass = django.models.intranet.__dict__[x] if isinstance(klass, meta.ModelBase):

Re: save and session

2005-12-12 Thread Dody Suria Wijaya
(doh, why jumbled, re-post..) Thanks, I'll paste it here: class ModelsAddRequest: def process_request(self, request): for x in dir(django.models.intranet): klass = django.models.intranet.__dict__[x] if isinstance(klass, meta.ModelBase): klass.request =