Re: Admin page: How to add a column for user that added an item

2008-10-29 Thread Steve Holden
Robert Dailey wrote: > On Oct 28, 2:47 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > >> On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: >> [...] >> >> I'm have some more questions for you if you don't mind. When I add a >> note, now there is a combo box with a list of users to cho

Re: Admin page: How to add a column for user that added an item

2008-10-29 Thread barbara shaurette
You need a save_model() method in your corresponding admin class: def save_model(self, request, obj, form, change): obj.user = request.user obj.save() http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-methods --~--~-~--~~~---~--~

Re: Admin page: How to add a column for user that added an item

2008-10-29 Thread Robert Dailey
On Oct 28, 2:47 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > Robert Dailey wrote: > > > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > >> Robert Dailey wrote: > > > >>> Hi, > > > >>> I currently have the f

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > >> Robert Dailey wrote: > > >>> Hi, > > >>> I currently have the following model: > > >>> class Note( models.Model ): > >>>    content = models.T

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Steve Holden
Robert Dailey wrote: > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > >> Robert Dailey wrote: >> >>> Hi, >>> >>> I currently have the following model: >>> >>> class Note( models.Model ): >>>content = models.TextField() >>> >>> I've setup the admin p

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > Hi, > > > I currently have the following model: > > > class Note( models.Model ): > >    content = models.TextField() > > > I've setup the admin page to allow users to add "notes", which > > basically lets them

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Steve Holden
Robert Dailey wrote: > Hi, > > I currently have the following model: > > class Note( models.Model ): > content = models.TextField() > > I've setup the admin page to allow users to add "notes", which > basically lets them fill in the content variable. However, on the > admin page I want to ad

Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
Hi, I currently have the following model: class Note( models.Model ): content = models.TextField() I've setup the admin page to allow users to add "notes", which basically lets them fill in the content variable. However, on the admin page I want to add a column to show the user that add