dev: rearrange migrations and add class calls

This commit is contained in:
pablohashescobar 2023-09-25 15:08:09 +05:30
parent 8745f20ef4
commit 0d07ecb337
3 changed files with 3 additions and 3 deletions

View File

@ -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 = [

View File

@ -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"

View File

@ -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"