Skip to content

Commit

Permalink
MT-404 Define DEFAULT_AUTO_FIELD setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakhnov committed Jun 3, 2021
1 parent fefb4ae commit e682c97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tardis/default_settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ def run_git(args):
return info

MYTARDIS_VERSION = get_git_version()

# Django 3.2 allows to customise the field type
# used when creating automatic primary keys.
# You can set the default auto field at a project, app, or model level.
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

0 comments on commit e682c97

Please sign in to comment.