Fixed admin_views's test_history_view on databases that don't use serial pks.
This commit is contained in:
parent
51d6e6e774
commit
83a8da576d
|
@ -2227,8 +2227,8 @@ class AdminViewPermissionsTest(TestCase):
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
# Test redirection when using row-level change permissions. Refs #11513.
|
# Test redirection when using row-level change permissions. Refs #11513.
|
||||||
rl1 = RowLevelChangePermissionModel.objects.create(name="odd id")
|
rl1 = RowLevelChangePermissionModel.objects.create(id=1, name="odd id")
|
||||||
rl2 = RowLevelChangePermissionModel.objects.create(name="even id")
|
rl2 = RowLevelChangePermissionModel.objects.create(id=2, name="even id")
|
||||||
logins = [self.superuser, self.viewuser, self.adduser, self.changeuser, self.deleteuser]
|
logins = [self.superuser, self.viewuser, self.adduser, self.changeuser, self.deleteuser]
|
||||||
for login_user in logins:
|
for login_user in logins:
|
||||||
with self.subTest(login_user.username):
|
with self.subTest(login_user.username):
|
||||||
|
|
Loading…
Reference in New Issue