>
> 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
interface can be its 'user' changed to anything (or nothing).
If it is not filled before save, then use the current one, so it is filled
everytime, usually (but not necesarry) with auth. user.
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 addresses are still the same pair, when I create more 'Vykon' objects. For
every call of 'process_request' is there one (and everytime the same) and for
every call of 'get_current_user' is another one (and everytime the same).
I just cannot understand it ...
--
Zdravi
Gilhad
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---