Corrected filtering public ssh keys condition
This commit is contained in:
parent
a32bb9b774
commit
dc6fa5428e
1 changed files with 2 additions and 2 deletions
|
@ -7,5 +7,5 @@ def get_all_public_keys(customer):
|
||||||
:param customer: The customer whose public keys are needed
|
:param customer: The customer whose public keys are needed
|
||||||
:return: A list of public keys
|
:return: A list of public keys
|
||||||
"""
|
"""
|
||||||
return UserHostingKey.objects.filter(
|
return UserHostingKey.objects.filter(user_id=customer.id).values_list(
|
||||||
user__site__customuser=customer).values_list("public_key", flat=True)
|
"public_key", flat=True)
|
||||||
|
|
Loading…
Reference in a new issue