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

Django 3.2.4 Upgrade - DEFAULT_AUTO_FIELD #873

Closed
leonardodepaula opened this issue Jun 4, 2021 · 4 comments
Closed

Django 3.2.4 Upgrade - DEFAULT_AUTO_FIELD #873

leonardodepaula opened this issue Jun 4, 2021 · 4 comments

Comments

@leonardodepaula
Copy link

After upgrading to Django 3.2.4 I started to receive those warning messages:

WARNINGS:
reversion.Revision: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
reversion.Version: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

How can I set default_auto_field for django-reversion?

Thanks.

@etianen
Copy link
Owner

etianen commented Jun 7, 2021 via email

@leonardodepaula
Copy link
Author

Thanks, @etianen.

Peter-van-Tol added a commit to Peter-van-Tol/django-reversion that referenced this issue Jun 16, 2021
@Peter-van-Tol
Copy link
Contributor

Done, hopefully it can be part of the next release!

@etianen
Copy link
Owner

etianen commented Jun 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants