fix tests

This commit is contained in:
Hugh Rundle 2023-09-24 15:58:52 +10:00
parent b69031c01a
commit fe4bc28f37
No known key found for this signature in database
GPG key ID: A7E35779918253F9

View file

@ -72,7 +72,7 @@ class SetupViews(TestCase):
self.site.refresh_from_db() self.site.refresh_from_db()
self.assertFalse(self.site.install_mode) self.assertFalse(self.site.install_mode)
user = models.User.objects.get() user = models.User.objects.first()
self.assertTrue(user.is_active) self.assertTrue(user.is_active)
self.assertTrue(user.is_superuser) self.assertTrue(user.is_superuser)
self.assertTrue(user.is_staff) self.assertTrue(user.is_staff)