diff options
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 16cd6df65..d64d20a02 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -120,8 +120,9 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem, blank=True, related_name='file_main') towns = models.ManyToManyField(Town, verbose_name=_(u"Towns"), related_name='file') - creation_date = models.DateField(_(u"Creation date"), - default=datetime.date.today) + creation_date = models.DateField( + _(u"Creation date"), default=datetime.date.today, blank=True, + null=True) reception_date = models.DateField(_(u'Reception date'), blank=True, null=True) related_file = models.ForeignKey("File", verbose_name=_(u"Related file"), |