Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default_auto_field to 'AutoField' #2829

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Backwards incompatible changes
been renamed to ``certificate_key``. This is done to prevent the key from being displayed
without being masked in Django debug pages.

0.44.0
******

- Better compatibility with Django 3.2


0.43.0 (2020-10-15)
*******************
Expand Down
1 change: 1 addition & 0 deletions allauth/account/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
class AccountConfig(AppConfig):
name = "allauth.account"
verbose_name = _("Accounts")
default_auto_field = 'django.db.models.AutoField'
1 change: 1 addition & 0 deletions allauth/socialaccount/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
class SocialAccountConfig(AppConfig):
name = "allauth.socialaccount"
verbose_name = _("Social Accounts")
default_auto_field = 'django.db.models.AutoField'
1 change: 1 addition & 0 deletions example/example/demo/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def setup_dummy_social_apps(sender, **kwargs):
class DemoConfig(AppConfig):
name = 'example.demo'
verbose_name = _('Demo')
default_auto_field = 'django.db.models.AutoField'

def ready(self):
post_migrate.connect(setup_dummy_social_apps, sender=self)