Skip to content
Snippets Groups Projects
Commit c376dd24 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Bugfix.

parent 4abfc60f
Branches
Tags
No related merge requests found
...@@ -418,7 +418,11 @@ class KeyPair(models.Model): ...@@ -418,7 +418,11 @@ class KeyPair(models.Model):
def __str__(self): def __str__(self):
if self.user:
return str('KeyPair of user "{}" (default={})'.format( self.user.email, self.default)) return str('KeyPair of user "{}" (default={})'.format( self.user.email, self.default))
else:
return str('KeyPair of user Platform (default={})'.format(self.default))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment