Skip to content

Commit 4edb368

Browse files
Bump Django To 3.2
Bumps the current django version to 3.2 For the most part, there are no major changes here. The app configuration names were incorrect, and the new version no longer ignores that, so those were updated. The new version also requires explicitly defining the field type for primary keys if they are not defined on the model. Signed-off-by: Hassan Abouelela <[email protected]>
1 parent 36a461b commit 4edb368

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

poetry.lock

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydis_site/apps/content/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class ContentConfig(AppConfig):
55
"""Django AppConfig for content app."""
66

7-
name = 'content'
7+
name = 'pydis_site.apps.content'

pydis_site/apps/events/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class EventsConfig(AppConfig):
55
"""Django AppConfig for events app."""
66

7-
name = 'events'
7+
name = 'pydis_site.apps.events'

pydis_site/apps/redirect/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class RedirectConfig(AppConfig):
55
"""AppConfig instance for Redirect app."""
66

7-
name = 'redirect'
7+
name = 'pydis_site.apps.redirect'

pydis_site/apps/resources/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class ResourcesConfig(AppConfig):
55
"""AppConfig instance for Resources app."""
66

7-
name = 'resources'
7+
name = 'pydis_site.apps.resources'

pydis_site/apps/staff/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class StaffConfig(AppConfig):
55
"""Django AppConfig for the staff app."""
66

7-
name = 'staff'
7+
name = 'pydis_site.apps.staff'

pydis_site/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@
219219
else:
220220
PARENT_HOST = env('PARENT_HOST', default='pythondiscord.com')
221221

222+
# Django Model Configuration
223+
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
224+
222225
# Django REST framework
223226
# https://www.django-rest-framework.org
224227
REST_FRAMEWORK = {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77

88
[tool.poetry.dependencies]
99
python = "3.9.*"
10-
django = "~=3.1.14"
10+
django = "~=3.2.14"
1111
django-environ = "~=0.4.5"
1212
django-filter = "~=21.1"
1313
djangorestframework = "~=3.12.0"

0 commit comments

Comments
 (0)