From 0d07ecb337a547949fe96f481da101f4aea63e5d Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Mon, 25 Sep 2023 15:08:09 +0530 Subject: [PATCH] dev: rearrange migrations and add class calls --- apiserver/plane/db/migrations/0048_auto_20230921_1416.py | 2 +- apiserver/plane/db/models/asset.py | 2 +- apiserver/plane/db/models/issue.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apiserver/plane/db/migrations/0048_auto_20230921_1416.py b/apiserver/plane/db/migrations/0048_auto_20230921_1416.py index 2623b10cc..f37308ab3 100644 --- a/apiserver/plane/db/migrations/0048_auto_20230921_1416.py +++ b/apiserver/plane/db/migrations/0048_auto_20230921_1416.py @@ -31,7 +31,7 @@ def move_s3_objects(apps, schema_editor): class Migration(migrations.Migration): dependencies = [ - ("db", "0046_auto_20230919_1421"), + ("db", "0047_auto_20230921_0758"), ] operations = [ diff --git a/apiserver/plane/db/models/asset.py b/apiserver/plane/db/models/asset.py index ae57179fd..4271b667f 100644 --- a/apiserver/plane/db/models/asset.py +++ b/apiserver/plane/db/models/asset.py @@ -32,7 +32,7 @@ class FileAsset(BaseModel): validators=[ file_size, ], - storage=PublicS3Storage, + storage=PublicS3Storage(), ) workspace = models.ForeignKey( "db.Workspace", on_delete=models.CASCADE, null=True, related_name="assets" diff --git a/apiserver/plane/db/models/issue.py b/apiserver/plane/db/models/issue.py index 86c9aaa0b..9fdb53fa8 100644 --- a/apiserver/plane/db/models/issue.py +++ b/apiserver/plane/db/models/issue.py @@ -267,7 +267,7 @@ class IssueAttachment(ProjectBaseModel): validators=[ file_size, ], - storage=PrivateS3Storage, + storage=PrivateS3Storage(), ) issue = models.ForeignKey( "db.Issue", on_delete=models.CASCADE, related_name="issue_attachment"