Skip to content

Commit

Permalink
Fixed test model deprecation (#1254)
Browse files Browse the repository at this point in the history
* models.NullBooleanField is deprecated in Django 3.1
  • Loading branch information
smithdc1 committed Aug 12, 2020
1 parent b7ed553 commit bcea73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class User(models.Model):
status = models.IntegerField(choices=STATUS_CHOICES, default=0)

is_active = models.BooleanField(default=False)
is_employed = models.NullBooleanField(default=False)
is_employed = models.BooleanField(null=True, default=False)

favorite_books = models.ManyToManyField('Book', related_name='lovers')

Expand Down

0 comments on commit bcea73b

Please sign in to comment.