aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/orm/models.py')
-rw-r--r--lib/orm/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/orm/models.py b/lib/orm/models.py
index ed6cee31..fd0fb0e9 100644
--- a/lib/orm/models.py
+++ b/lib/orm/models.py
@@ -151,6 +151,10 @@ class DataSource(models.Model):
(ONSTARTUP, 'OnStartup'),
)
+ # Global date format
+ DATE_FORMAT = '%Y-%m-%d'
+ DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S'
+
key = models.CharField(max_length=20)
data = models.CharField(max_length=20)
source = models.CharField(max_length=20)
@@ -164,6 +168,7 @@ class DataSource(models.Model):
update_frequency = models.IntegerField(choices=FREQUENCY, default=DAILY)
loaded = models.BooleanField(default=False)
lastModifiedDate = models.CharField(max_length=50, blank=True)
+ lastUpdatedDate = models.CharField(max_length=50, blank=True)
update_time = models.CharField(max_length=50, blank=True)
def get_frequency_text(self):