python3: use // to force integer result (#28276)
This commit is contained in:
parent
1b1a8ba585
commit
352a7c0bf5
|
@ -89,7 +89,7 @@ def test_massive_role_parenting(db):
|
|||
if not i:
|
||||
continue
|
||||
relations.append(
|
||||
RoleParenting(parent=roles[i], child=roles[(i - 1) / SPAN]))
|
||||
RoleParenting(parent=roles[i], child=roles[(i - 1) // SPAN]))
|
||||
RoleParenting.objects.bulk_create(relations)
|
||||
RoleParenting.objects.update_transitive_closure()
|
||||
operation, created = models.Operation.objects.get_or_create(
|
||||
|
|
Loading…
Reference in New Issue