diff --git a/apps/agent/migrations/0005_alter_agentprompt_options.py b/apps/agent/migrations/0005_alter_agentprompt_options.py new file mode 100644 index 0000000..31f8a06 --- /dev/null +++ b/apps/agent/migrations/0005_alter_agentprompt_options.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2.12 on 2026-07-04 14:39 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('agent', '0004_embeddingsession'), + ] + + operations = [ + migrations.AlterModelOptions( + name='agentprompt', + options={'ordering': ['id']}, + ), + ] diff --git a/apps/agent/models.py b/apps/agent/models.py index 993237b..9fe97a7 100644 --- a/apps/agent/models.py +++ b/apps/agent/models.py @@ -36,6 +36,9 @@ class AgentPrompt(models.Model): content = models.TextField(help_text="The instruction text.") is_active = models.BooleanField(default=True) + class Meta: + ordering = ["id"] + def __str__(self): # Display the first 50 chars as the name in admin # if self.is_active: diff --git a/apps/course/migrations/0017_alter_coursecategory_options.py b/apps/course/migrations/0017_alter_coursecategory_options.py new file mode 100644 index 0000000..862273b --- /dev/null +++ b/apps/course/migrations/0017_alter_coursecategory_options.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2.12 on 2026-07-04 14:39 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('course', '0016_remove_course_professor_course_professors'), + ] + + operations = [ + migrations.AlterModelOptions( + name='coursecategory', + options={'ordering': ('-id',)}, + ), + ]