Re: Autofill user for a created_by type of field (not in admin)

2014-08-11 Thread Mike Dewhirst
On 12/08/2014 12:40 PM, Craig Jones wrote: I know that this is a common question and I have seen many, many answers when I google about this, but I need some advice. What I have is a field in my models called entered_by which is ForeignKey to the User model. I would like to have this filled auto

Autofill user for a created_by type of field (not in admin)

2014-08-11 Thread Craig Jones
I know that this is a common question and I have seen many, many answers when I google about this, but I need some advice. What I have is a field in my models called entered_by which is ForeignKey to the User model. I would like to have this filled automatically upon creation in the Admin panel

Re: autofill user

2008-09-12 Thread [EMAIL PROTECTED]
On Sep 11, 11:11 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-11 at 22:16 +0200, Stephan Hoyer wrote: > > Hi All > > > i want to store the add and changetime an user to some models, therefor > > i created a abstract class to inherit from: > > > class DublinCore(models.Mode

Re: autofill user

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 22:16 +0200, Stephan Hoyer wrote: > Hi All > > i want to store the add and changetime an user to some models, therefor > i created a abstract class to inherit from: > > class DublinCore(models.Model): > inserted= models.DateTimeField(auto_now_add=True) > updat

autofill user

2008-09-11 Thread Stephan Hoyer
Hi All i want to store the add and changetime an user to some models, therefor i created a abstract class to inherit from: class DublinCore(models.Model): inserted= models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) inserter= models.For