keep private texts private
This commit is contained in:
parent
6e698cf32f
commit
aeab4d03de
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ def migrate_texts(apps, schema_editor):
|
||||||
d.name = t.name
|
d.name = t.name
|
||||||
d.user = t.user
|
d.user = t.user
|
||||||
d.description = t.description
|
d.description = t.description
|
||||||
|
d.rightslevel = 2 if t.status == 'private' else 0
|
||||||
d.data['text'] = t.text
|
d.data['text'] = t.text
|
||||||
d.data['embeds'] = t.embeds
|
d.data['embeds'] = t.embeds
|
||||||
d.save()
|
d.save()
|
||||||
|
|
Loading…
Reference in a new issue