On Apr 1, 3:16 pm, Митко Масарлиев wrote:
> soniiic wrote:
>
> > On Mar 31, 10:31 pm, Mitko Masarliev wrote:
>
> >> I have application with table name clients. Clients has one to one
> >> relation with django users and in all app logic I check clients id by
> >> request.user.id, In some cases
soniiic wrote:
On Mar 31, 10:31 pm, Mitko Masarliev wrote:
I have application with table name clients. Clients has one to one
relation with django users and in all app logic I check clients id by
request.user.id, In some cases user_id is not same as clients_id. This
is the probl
On Mar 31, 10:31 pm, Mitko Masarliev wrote:
> I have application with table name clients. Clients has one to one
> relation with django users and in all app logic I check clients id by
> request.user.id, In some cases user_id is not same as clients_id. This
> is the problem, so I am trying to c
I have application with table name clients. Clients has one to one
relation with django users and in all app logic I check clients id by
request.user.id, In some cases user_id is not same as clients_id. This
is the problem, so I am trying to change request.user.id to be equal to
clients_id and
Why do you want to change the request object? Why are you trying to store a
user object? Perhaps you want to store it in a session?
I think you should explain what you are trying to do.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/31 Masarliev
>
> yes it's bad
yes it's bad idea. other solution is to create additional object
similar to request.user for example request.additional. How can i do
that.
On Mar 31, 4:17 pm, Jeff FW wrote:
> Changing request.user.id doesn't make sense--that would be trying to
> change the id of the user object itself. I thin
Changing request.user.id doesn't make sense--that would be trying to
change the id of the user object itself. I think what you're trying
to do is change the user that is actually logged in... right? If
that's true, then you need to set request.user *not* request.user.id--
but that seems like a v
I have a application but i have error in base logic and I need to
change request.user.id.
Is it posible to do that
I tried request.user.id = but with no result
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
8 matches
Mail list logo