Skip to content

Commit

Permalink
Fix auto-created primary key used when not defining a primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jul 17, 2021
1 parent a811d54 commit e25a9c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@
"rosetta",
)

DEFAULT_AUTO_FIELD='django.db.models.AutoField'

LOCALE_PATHS = (os.path.join(ROOT, "survey", "locale"),)
LANGUAGE_CODE = "en-us"
LANGUAGES = (
Expand Down
2 changes: 2 additions & 0 deletions survey/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

INSTALLED_APPS = ("survey", "bootstrapform")

DEFAULT_AUTO_FIELD='django.db.models.AutoField'

LOCALE_PATHS = (Path(ROOT, "survey", "locale"),)
LANGUAGE_CODE = "en"
LANGUAGES = (
Expand Down

0 comments on commit e25a9c9

Please sign in to comment.