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.ForeignKey(User, related_name = 'inserter')
updater = models.ForeignKey(User, related_name = 'update')
class Meta:
abstract = True
How can i get the user automaticaly inserted/updated. I searched the
web, but only get stuff of previous djangoversions (2 years ago) which
are quite complicated.
How is it done today?
Thanks for answering
Stephan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---