Skip to content

Commit

Permalink
Additional Django 3.2 cleanup (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca authored Dec 5, 2021
1 parent 33a3d49 commit dd806cf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions test_project/heroes/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@


class HeroesConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "test_project.heroes"
20 changes: 20 additions & 0 deletions test_project/heroes/migrations/0003_alter_hero_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 3.2.9 on 2021-12-05 17:09

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("heroes", "0002_prefix_hashed_key"),
]

operations = [
migrations.AlterField(
model_name="hero",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
]
2 changes: 1 addition & 1 deletion test_project/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

# Database

DATABASES = {"default": dj_database_url.config(default="sqlite://db.sqlite3")}
DATABASES = {"default": dj_database_url.config(default="sqlite:///db.sqlite3")}


# Password validation
Expand Down

0 comments on commit dd806cf

Please sign in to comment.