Skip to content

Commit

Permalink
Replace NullBooleanField with BooleanField(null=True)
Browse files Browse the repository at this point in the history
Gets rid of warning:

(fields.W903)
  NullBooleanField is deprecated. Support for it (except in historical
  migrations) will be removed in Django 4.0.
  • Loading branch information
hmpf committed Dec 3, 2021
1 parent 3be8fdd commit 9043bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/models/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class NetboxEntity(models.Model):
model_name = VarcharField(null=True)
alias = VarcharField(null=True)
asset_id = VarcharField(null=True)
fru = models.NullBooleanField(verbose_name='Is a field replaceable unit')
fru = models.BooleanField(null=True, verbose_name='Is a field replaceable unit')
mfg_date = models.DateTimeField(null=True)
uris = VarcharField(null=True)
gone_since = models.DateTimeField(null=True)
Expand Down Expand Up @@ -2515,7 +2515,7 @@ class IpdevpollJobLog(models.Model):
job_name = VarcharField(null=False, blank=False)
end_time = models.DateTimeField(auto_now_add=True, null=False)
duration = models.FloatField(null=True)
success = models.NullBooleanField(default=False, null=True)
success = models.BooleanField(default=False, null=True)
interval = models.IntegerField(null=True)

class Meta(object):
Expand Down

0 comments on commit 9043bf9

Please sign in to comment.