> > As I did some other experiments, it seems to me, that there are
> > TWO '_thread_locals' objects, one filled in 'process_request' (which
> > has 'user' attribute set) and another one in 'get_current_user' which
> > does not.
The problem was in the fact, that i had
import middleware.threadloc
On Tuesday 27 March 2007 10:28, Gilhad wrote:
> > the default value is a callable, its not a value... I use exactly this
> > and it work very well for me...
> > I agree that there is duplicity (why specify a default if you override
> > it in save() ), but that shouldn't matter
>
> The idea is, tha
>
> the default value is a callable, its not a value... I use exactly this
> and it work very well for me...
> I agree that there is duplicity (why specify a default if you override
> it in save() ), but that shouldn't matter
The idea is, that new object 'Vykon' came prefilled, but in the admin
On Tue, 2007-03-27 at 02:52 +0200, Honza Král wrote:
> On 3/27/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> >
> > On Mon, 2007-03-26 at 21:56 +0200, Gilhad wrote:
> > > I am trying to get current user, but I have some problem with it. I got
> > > different '_local' object each time ...
> >
On 3/27/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2007-03-26 at 21:56 +0200, Gilhad wrote:
> > I am trying to get current user, but I have some problem with it. I got
> > different '_local' object each time ...
> >
> > I followed the example at
> > http://code.djangoproject.com/
On Mon, 2007-03-26 at 21:56 +0200, Gilhad wrote:
> I am trying to get current user, but I have some problem with it. I got
> different '_local' object each time ...
>
> I followed the example at
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
>
> and make my model such way:
>
On 3/26/07, Gilhad <[EMAIL PROTECTED]> wrote:
>
> I am trying to get current user, but I have some problem with it. I got
> different '_local' object each time ...
>
> I followed the example at
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
>
> and make my model such way:
>
> clas
I am trying to get current user, but I have some problem with it. I got
different '_local' object each time ...
I followed the example at
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
and make my model such way:
class Vykon(models.Model):
user = models.ForeignKey(User
8 matches
Mail list logo