diff --git a/dynamic_models/migrations/0006_alter_fieldschema_id_alter_modelschema_id.py b/dynamic_models/migrations/0006_alter_fieldschema_id_alter_modelschema_id.py new file mode 100644 index 0000000..e197eac --- /dev/null +++ b/dynamic_models/migrations/0006_alter_fieldschema_id_alter_modelschema_id.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.7 on 2023-11-10 16:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dynamic_models', '0005_add_model_db_name'), + ] + + operations = [ + migrations.AlterField( + model_name='fieldschema', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + migrations.AlterField( + model_name='modelschema', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + ] diff --git a/settings/base.py b/settings/base.py index 19d4f53..b0ad3c8 100644 --- a/settings/base.py +++ b/settings/base.py @@ -17,3 +17,4 @@ CACHES = { "default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}, } +DEFAULT_AUTO_FIELD = "django.db.models.AutoField"