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

Errors during python manage.py makemigrations metadata step #33

Open
Mpellet771 opened this issue Aug 30, 2022 · 0 comments
Open

Errors during python manage.py makemigrations metadata step #33

Mpellet771 opened this issue Aug 30, 2022 · 0 comments

Comments

@Mpellet771
Copy link

I'm using Python 3.9 and following the steps and I keep getting this error set:

filing.Filing.is_error: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.
filing.Filing.parse_complete: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.
filing.Filing.parse_started: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.
metadata.Group.headless: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.
metadata.SchedulePart.is_shell: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.
metadata.Variable.is_canonical: (fields.E903) NullBooleanField is removed except for support in historical migrations.
HINT: Use BooleanField(null=True) instead.

And here is a sample of the warnings I receive:

WARNINGS:
filing.Filing: (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'.
metadata.Description: (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 MetadataConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
metadata.Group: (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 MetadataConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
metadata.LineNumber: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.

I'm not sure where to make these suggested changes or whether the errors are an indicator that I missed a step. Thanks.

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

1 participant