diff options
| -rw-r--r-- | ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py | 23 | ||||
| -rw-r--r-- | ishtar_common/models.py | 2 | 
2 files changed, 24 insertions, 1 deletions
| diff --git a/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py b/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py new file mode 100644 index 000000000..50a6c1b89 --- /dev/null +++ b/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.24 on 2024-05-15 17:50 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + +    dependencies = [ +        ('ishtar_common', '0245_verbose_names'), +    ] + +    operations = [ +        migrations.AlterField( +            model_name='ishtarsiteprofile', +            name='files', +            field=models.BooleanField(default=False, verbose_name='File/administrative module'), +        ), +        migrations.AlterField( +            model_name='ishtarsiteprofile', +            name='parent_relations_engine', +            field=models.CharField(choices=[('V', 'SQL views'), ('T', 'Cache tables')], default='T', help_text='If you experience performance problems with complex relations (for instance: complex statigraphic relations), set it to "Cache tables" in order to use static cache tables. Do not forget to update theses table with the "migrate_relations_cache_tables" manage.py command.', max_length=1, verbose_name='Parent relations engine'), +        ), +    ] diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 00faab64d..1aab612df 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1112,7 +1112,7 @@ class IshtarSiteProfile(models.Model, Cached):              ("V", _("SQL views")),              ("T", _("Cache tables")),          ), -        default="V", +        default="T",          max_length=1,          help_text=_(              "If you experience performance problems with complex relations " | 
