Updates migrations

To get the app working again I ran resetdb, let it crash in initdb,
then ran the migration, then re-ran initdb
This commit is contained in:
Mouse Reeve
2020-09-21 08:10:37 -07:00
parent d1f1260640
commit c7883cd615
106 changed files with 279 additions and 279 deletions

View File

@ -5,7 +5,7 @@ from django.db import migrations, models
def populate_identifiers(app_registry, schema_editor):
db_alias = schema_editor.connection.alias
tags = app_registry.get_model('fedireads', 'Tag')
tags = app_registry.get_model('bookwyrm', 'Tag')
for tag in tags.objects.using(db_alias):
tag.identifier = re.sub(r'\W+', '-', tag.name).lower()
tag.save()
@ -14,7 +14,7 @@ def populate_identifiers(app_registry, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('fedireads', '0004_tag'),
('bookwyrm', '0004_tag'),
]
operations = [