1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-03 02:14:26 +00:00

web/postkey/models.py: add new column "expires"

Needed for storing info about when some host must be expired.
This commit is contained in:
Hidden Z 2010-10-26 17:58:55 +00:00
parent a3b8128002
commit 65f6b2b395

View File

@ -9,6 +9,8 @@ class i2phost(models.Model):
date_added = models.DateTimeField(auto_now_add=True)
# Last time this host was up
last_seen = models.DateTimeField(null=True)
# Scheduled expiration date
expires = models.DateField(null=True)
# Not-activated hosts will not appear in exported hosts.txt
activated = models.BooleanField(default=False)
# Indicator for hosts added from external source