models: Move some functions to zerver.lib.attachments.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-15 11:03:19 -08:00
committed by Tim Abbott
parent 09d0abfe70
commit cff0b78771
8 changed files with 180 additions and 175 deletions

View File

@@ -7,8 +7,9 @@ from django.utils.timezone import now as timezone_now
from typing_extensions import override
from zerver.actions.uploads import do_delete_old_unclaimed_attachments
from zerver.lib.attachments import get_old_unclaimed_attachments
from zerver.lib.upload import all_message_attachments, delete_message_attachments
from zerver.models import ArchivedAttachment, Attachment, get_old_unclaimed_attachments
from zerver.models import ArchivedAttachment, Attachment
class Command(BaseCommand):