mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 09:55:52 +00:00
web/postkey/models.py: make date fields blank by default
Need that for make them optional in i2phost editing in django admin.
This commit is contained in:
parent
6e195df483
commit
817d4490b9
@ -8,9 +8,9 @@ class i2phost(models.Model):
|
|||||||
description = models.CharField("Description", max_length=4096, blank=True)
|
description = models.CharField("Description", max_length=4096, 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 time this host was up
|
||||||
last_seen = models.DateTimeField(null=True)
|
last_seen = models.DateTimeField(null=True, blank=True)
|
||||||
# Scheduled expiration date
|
# Scheduled expiration date
|
||||||
expires = models.DateField(null=True)
|
expires = models.DateField(null=True, blank=True)
|
||||||
# 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…
x
Reference in New Issue
Block a user