Commit 391b04aa authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Fix migration not truncating titles correctly

parent a9d88685
......@@ -14,7 +14,7 @@ def set_titles(apps, schema_editor):
for pos in Position.objects.all():
lines = pos.text.split('\n')
if len(lines) > 1:
pos.title = lines[0]
pos.title = lines[0][0:500]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment