diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-01-17 05:03:58 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-01-17 05:03:58 +0000 |
commit | e3a139bc58f5ece2bd56f36134243a0f151ba79b (patch) | |
tree | 71e297e60953739f0ea615de9216c786a7b71ba1 /rpkid/rpki/gui/app/models.py | |
parent | f5933b44df77df3818a38474d44ea5513249d9a8 (diff) |
add support for importing mrt format ribs
remove default=0 value for timestamps, as that is not a valid initial
value for a datetime object.
since there is no default argument, the call to the Timestamp
constructor needs to specify the value.
svn path=/branches/tk161/; revision=4177
Diffstat (limited to 'rpkid/rpki/gui/app/models.py')
-rw-r--r-- | rpkid/rpki/gui/app/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/rpki/gui/app/models.py b/rpkid/rpki/gui/app/models.py index f81526e8..b3333986 100644 --- a/rpkid/rpki/gui/app/models.py +++ b/rpkid/rpki/gui/app/models.py @@ -261,7 +261,7 @@ class Timestamp(models.Model): set timestamps rather than updating this model directly.""" name = models.CharField(max_length=30, primary_key=True) - ts = models.DateTimeField(null=False, default=0) + ts = models.DateTimeField(null=False) def __unicode__(self): return '%s: %s' % (self.name, self.ts) |