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
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
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):
(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 =
4 matches
Mail list logo