mahakala wrote: > Hi, everybody > > I just created a simple data entry application in django, and I want to > use contrib admin as the data input interface and the admin user > management, I want the system log which staff user input the every > single line data. I know there is an action history. But I still want > there is a field in each record to log who create it and who last > change it. Is there a special model field can do this?or it must be > done through programming about auth module.? Thanks.
In the options for a DateTimeField you can specify auto_now=True and the Admin will autofill it with the "current time" (which becomes the last modified date). There is no current way to do the same with User, but there is a proposed CurrentUserField in the works. -- --Max Battcher-- http://www.worldmaker.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---