made expiredate voluntary

This commit is contained in:
okalintu
2016-09-14 20:47:57 +03:00
parent d09154ba45
commit bd4c9b5433
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from django.utils import timezone
class InfoItem(models.Model):
name = models.CharField(max_length=255)
template_url = models.CharField(max_length=512)
expire_date = models.DateTimeField() # None means never expiring item
expire_date = models.DateTimeField(blank=True,null=True) # None means never expiring item
def get_dict(self):
# fetch options