Skip to content

Commit

Permalink
Set default auto field to BigAutoField (#134)
Browse files Browse the repository at this point in the history
In re: #124 missing migration

This may, in turn, create migrations for those who manually created them.  Each situation depends on the system
  • Loading branch information
jan-szejko-steelseries authored and tony committed Oct 15, 2022
1 parent 7594e8c commit f975129
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/robots/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from pkg_resources import get_distribution

__version__ = get_distribution("django-robots").version

# needed for Django<3.2
default_app_config = "robots.apps.RobotsConfig"
6 changes: 6 additions & 0 deletions src/robots/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class RobotsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "robots"

0 comments on commit f975129

Please sign in to comment.