From d6c360605b98879ad86c336c6383aaf19615b566 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Thu, 14 Oct 2010 20:00:49 +0000 Subject: [PATCH] web/postkey/models.py: add "last_seen" field --- web/postkey/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/postkey/models.py b/web/postkey/models.py index a2f37d1..0f8a2d4 100644 --- a/web/postkey/models.py +++ b/web/postkey/models.py @@ -7,6 +7,8 @@ class i2phost(models.Model): b64hash = models.CharField("Base 64 hash", max_length=616) description = models.TextField("Description", blank=True) date_added = models.DateTimeField(auto_now_add=True) + # Last time this host was up + last_seen = models.DateTimeField() # Not-activated hosts will not appear in exported hosts.txt activated = models.BooleanField(default=False) # Indicator for hosts added from external source