[frontend] fix last_modified timestamp in desktop/models
@@ -1188,8 +1188,8 @@ class Document2(models.Model):
'parent_uuid': self.parent_directory.uuid if self.parent_directory else None,
'type': self.type,
'perms': self._massage_permissions(),
- 'last_modified': self.last_modified.strftime(UTC_TIME_FORMAT),
- 'last_modified_ts': calendar.timegm(self.last_modified.utctimetuple()),
+ 'last_modified': self.last_modified.strftime(UTC_TIME_FORMAT) if self.last_modified else None,
+ 'last_modified_ts': calendar.timegm(self.last_modified.utctimetuple()) if self.last_modified else None,
'is_managed': self.is_managed,
'isSelected': False,
'absoluteUrl': self.get_absolute_url(),
