This should use `deletion_logs.exists()` here as `_check_for_deleted_document` returns a queryset, not just one object.

Actually this seems like an issue with `_document_deleted` as well, it passes the queryset (`deletion_logs`) to the template but the template uses `deletion_log` (singular) for rendering it. Either `_document_deleted` should be reverted to pass `deletion_log` as `deletion_logs[0]` or there needs to be a for loop in the `wiki/deletion_log.html` template.