Re: add manipulator with current user field

2007-01-14 Thread James Bennett
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that field? What I usually do is write the manipulator so its __init__ takes an extra argument -- a user -- and have its save()

Re: add manipulator with current user field

2007-01-14 Thread Honza Král
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: On 14/01/2007, at 10:29 AM, Honza Kr l wrote: > On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: >> >> I have a model with a required field of ForeignKey(User) >> >> What's the easiest way to write an add manipulator that automatically >>

Re: add manipulator with current user field

2007-01-14 Thread James Tauber
On 14/01/2007, at 10:29 AM, Honza Král wrote: On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: I have a model with a required field of ForeignKey(User) What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that field? do not

Re: add manipulator with current user field

2007-01-14 Thread Honza Král
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: I have a model with a required field of ForeignKey(User) What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that field? do not write it at all, use generic views and wrap it in

add manipulator with current user field

2007-01-14 Thread James Tauber
I have a model with a required field of ForeignKey(User) What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that field? James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/