Skip to content

Commit f56fe24

Browse files
committed
Fix a Django warning in tests
1 parent 791790e commit f56fe24

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/migrations/0002_models.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
2020
fields=[
2121
(
2222
"id",
23-
models.AutoField(
23+
models.BigAutoField(
2424
auto_created=True,
2525
primary_key=True,
2626
serialize=False,
@@ -35,7 +35,7 @@ class Migration(migrations.Migration):
3535
fields=[
3636
(
3737
"id",
38-
models.AutoField(
38+
models.BigAutoField(
3939
auto_created=True,
4040
primary_key=True,
4141
serialize=False,
@@ -55,7 +55,7 @@ class Migration(migrations.Migration):
5555
fields=[
5656
(
5757
"id",
58-
models.AutoField(
58+
models.BigAutoField(
5959
auto_created=True,
6060
primary_key=True,
6161
serialize=False,
@@ -71,7 +71,7 @@ class Migration(migrations.Migration):
7171
fields=[
7272
(
7373
"id",
74-
models.AutoField(
74+
models.BigAutoField(
7575
auto_created=True,
7676
primary_key=True,
7777
serialize=False,
@@ -87,7 +87,7 @@ class Migration(migrations.Migration):
8787
fields=[
8888
(
8989
"id",
90-
models.AutoField(
90+
models.BigAutoField(
9191
auto_created=True,
9292
primary_key=True,
9393
serialize=False,
@@ -105,7 +105,7 @@ class Migration(migrations.Migration):
105105
fields=[
106106
(
107107
"id",
108-
models.AutoField(
108+
models.BigAutoField(
109109
auto_created=True,
110110
primary_key=True,
111111
serialize=False,

tests/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@
3434
"HOST": "localhost",
3535
}
3636
}
37+
38+
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

0 commit comments

Comments
 (0)