Skip to content
Snippets Groups Projects
Commit 6b6aa475 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Fix migrations

parent 6d8275b1
No related branches found
No related tags found
1 merge request!18Transcription search
......@@ -11,7 +11,7 @@ def transcription_to_document(apps, schema_editor):
new_ts = Transcription(line=ts.line, score=ts.score, text=ts.text)
new_ts.document_ptr = Document.objects.create(type=DocumentType.Transcription, name="Transcription '{}'".format(ts.text))
new_ts.save()
new_ts.zones.add(ts.zone)
new_ts.document_ptr.zones.add(ts.zone)
class Migration(migrations.Migration):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment