diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2010-07-15 20:48:02 +0000 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-07-16 16:36:15 -0500 |
commit | 84b3bcd2d27e92323ac699fd84a9c1130d85280f (patch) | |
tree | a1934db43baf1afd94471a25807068dc38649d92 /src/lib/Server/Reports/reports | |
parent | c76279defd35949ec87fa243acae6e141ee201ee (diff) | |
download | bcfg2-84b3bcd2d27e92323ac699fd84a9c1130d85280f.tar.gz bcfg2-84b3bcd2d27e92323ac699fd84a9c1130d85280f.tar.bz2 bcfg2-84b3bcd2d27e92323ac699fd84a9c1130d85280f.zip |
DBStats: Support for postgresql
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5975 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Reports/reports')
-rw-r--r-- | src/lib/Server/Reports/reports/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/reports/models.py b/src/lib/Server/Reports/reports/models.py index 52073c153..709e7aa1c 100644 --- a/src/lib/Server/Reports/reports/models.py +++ b/src/lib/Server/Reports/reports/models.py @@ -54,7 +54,7 @@ class ClientManager(models.Manager): class Client(models.Model): """Object representing every client we have seen stats for.""" - creation = models.DateTimeField() + creation = models.DateTimeField(auto_now_add=True) name = models.CharField(max_length=128,) current_interaction = models.ForeignKey('Interaction', null=True, blank=True, |