Explicit ordering for Lesson, Question, Choice (+id tie-break on Unit/Node): lessons no longer reshuffle after row updates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
33
content/migrations/0024_explicit_ordering.py
Normal file
33
content/migrations/0024_explicit_ordering.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.17 on 2026-10-15 10:07
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('content', '0023_lesson_report_content_vote'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='choice',
|
||||
options={'ordering': ['id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='lesson',
|
||||
options={'ordering': ['id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='node',
|
||||
options={'ordering': ['order', 'id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='question',
|
||||
options={'ordering': ['id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='unit',
|
||||
options={'ordering': ['order', 'id']},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user