Browse Source

web/postkey/models.py: add "last_seen" field

pull/1/head
Hidden Z 14 years ago
parent
commit
d6c360605b
  1. 2
      web/postkey/models.py

2
web/postkey/models.py

@ -7,6 +7,8 @@ class i2phost(models.Model):
b64hash = models.CharField("Base 64 hash", max_length=616) b64hash = models.CharField("Base 64 hash", max_length=616)
description = models.TextField("Description", blank=True) description = models.TextField("Description", blank=True)
date_added = models.DateTimeField(auto_now_add=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 # Not-activated hosts will not appear in exported hosts.txt
activated = models.BooleanField(default=False) activated = models.BooleanField(default=False)
# Indicator for hosts added from external source # Indicator for hosts added from external source

Loading…
Cancel
Save