-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default auto field to BigAutoField (#134)
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
1 parent
7594e8c
commit f975129
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |