diff --git a/pandora/document/migrations/0004_migrate_text.py b/pandora/document/migrations/0004_migrate_text.py index e965c0da..c03242a1 100644 --- a/pandora/document/migrations/0004_migrate_text.py +++ b/pandora/document/migrations/0004_migrate_text.py @@ -69,6 +69,7 @@ def migrate_texts(apps, schema_editor): d.name = t.name d.user = t.user d.description = t.description + d.rightslevel = 2 if t.status == 'private' else 0 d.data['text'] = t.text d.data['embeds'] = t.embeds d.save()