newfs / gobotany-app

Deployable code for the Go Botany application
9 stars 8 forks source link

Update deprecated model fields #792

Closed jnga closed 2 years ago

jnga commented 2 years ago

Under Django 3.1, there are some deprecation warnings on startup and upon running tests:

System check identified some issues:

WARNINGS: core.InvasiveStatus.invasive_in_region: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0. HINT: Use BooleanField(null=True) instead. core.InvasiveStatus.prohibited_from_sale: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0. HINT: Use BooleanField(null=True) instead. core.Taxon.north_american_introduced: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0. HINT: Use BooleanField(null=True) instead. core.Taxon.north_american_native: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0. HINT: Use BooleanField(null=True) instead.