diff --git a/edx_exams/apps/core/migrations/0019_auto_20230927_1552.py b/edx_exams/apps/core/migrations/0019_auto_20230927_1552.py new file mode 100644 index 00000000..59da9074 --- /dev/null +++ b/edx_exams/apps/core/migrations/0019_auto_20230927_1552.py @@ -0,0 +1,21 @@ +# Generated by Django 3.2.21 on 2023-09-27 15:52 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0018_staff_roles'), + ] + + operations = [ + migrations.AlterModelOptions( + name='historicalexam', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical exam', 'verbose_name_plural': 'historical exams'}, + ), + migrations.AlterModelOptions( + name='historicalexamattempt', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical exam attempt', 'verbose_name_plural': 'historical exam attempts'}, + ), + ] diff --git a/edx_exams/settings/base.py b/edx_exams/settings/base.py index 91d93a7c..3c8b5217 100644 --- a/edx_exams/settings/base.py +++ b/edx_exams/settings/base.py @@ -275,3 +275,6 @@ def root(*path_fragments): LEARNING_MICROFRONTEND_URL = None EXAMS_DASHBOARD_MFE_URL = None + +# disable indexing on history_date +SIMPLE_HISTORY_DATE_INDEX = False