This commit is contained in:
Martin Pépin 2020-05-27 22:38:05 +02:00
parent b8e165aca5
commit bbd6a5bb82
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -85,7 +85,7 @@ class ENSCASBackend:
i = len(cas_login) - 1 i = len(cas_login) - 1
while i >= 0 and cas_login[i] in "0123456789": while i >= 0 and cas_login[i] in "0123456789":
i -= 1 i -= 1
radical = cas_login[:i + 1] radical = cas_login[: i + 1]
# Find an integer i such that radical + str(i) is not taken. # Find an integer i such that radical + str(i) is not taken.
taken = UserModel.objects.values_list("username", flat=True) taken = UserModel.objects.values_list("username", flat=True)