Skip to content

Commit

Permalink
Fix migration 0054 (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom authored Sep 11, 2024
1 parent becedbc commit 8cce3ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def migrate_models(self) -> list[BaseRequestEvent] | None:
]
)
else:
assert not any(mediafile.get(field) for field in self.split_fields)
assert not any(
mediafile.get(field)
for field in self.split_fields
if field != "is_public"
)
events.extend(
[
RequestUpdateEvent(
Expand Down
2 changes: 1 addition & 1 deletion tests/system/migrations/test_0054_split_mediafile_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_migration(write, finalize, assert_model):
"is_directory": True,
"create_timestamp": 2,
"child_ids": [3],
"is_public": False,
"is_public": True,
"inherited_access_group_ids": [],
},
},
Expand Down

0 comments on commit 8cce3ce

Please sign in to comment.