diff --git a/uniticket/uni_ticket/migrations/0016_remove_log_uni_ticket__content_dbfb39_idx_and_more.py b/uniticket/uni_ticket/migrations/0016_remove_log_uni_ticket__content_dbfb39_idx_and_more.py index 6befbc8..29c2006 100644 --- a/uniticket/uni_ticket/migrations/0016_remove_log_uni_ticket__content_dbfb39_idx_and_more.py +++ b/uniticket/uni_ticket/migrations/0016_remove_log_uni_ticket__content_dbfb39_idx_and_more.py @@ -25,8 +25,8 @@ class Migration(migrations.Migration): name='protocollo_uo', field=models.CharField(choices=[('', '-')], max_length=12, verbose_name='UO'), ), - migrations.AlterIndexTogether( - name='log', - index_together={('content_type', 'object_id')}, - ), + # migrations.AlterIndexTogether( + # name='log', + # index_together={('content_type', 'object_id')}, + # ), ] diff --git a/uniticket/uni_ticket/migrations/0018_rename_log_content_type_object_id_uni_ticket__content_dbfb39_idx.py b/uniticket/uni_ticket/migrations/0018_rename_log_content_type_object_id_uni_ticket__content_dbfb39_idx.py index 6b58b6a..f120aa7 100644 --- a/uniticket/uni_ticket/migrations/0018_rename_log_content_type_object_id_uni_ticket__content_dbfb39_idx.py +++ b/uniticket/uni_ticket/migrations/0018_rename_log_content_type_object_id_uni_ticket__content_dbfb39_idx.py @@ -10,9 +10,9 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RenameIndex( - model_name='log', - new_name='uni_ticket__content_dbfb39_idx', - old_fields=('content_type', 'object_id'), - ), + # migrations.RenameIndex( + # model_name='log', + # new_name='uni_ticket__content_dbfb39_idx', + # old_fields=('content_type', 'object_id'), + # ), ] diff --git a/uniticket/uni_ticket/models.py b/uniticket/uni_ticket/models.py index a82c266..f4fffd2 100644 --- a/uniticket/uni_ticket/models.py +++ b/uniticket/uni_ticket/models.py @@ -77,7 +77,7 @@ def _attachment_upload(instance, filename): ### Custom Logs ### # like django.contrib.admin.models.LogEntry # but object_id as PositiveIntegerField -# and with index_together = ["content_type", "object_id"]) +# and with indexes = [models.Index(fields=["content_type", "object_id"])] import inspect exec(inspect.getsource(LogEntry).replace('db_table = "django_admin_log"', 'indexes = [models.Index(fields=["content_type", "object_id"])]')\