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

Minor fix.

parent 2c7fc444
No related merge requests found
......@@ -247,7 +247,7 @@ class ComputingSysConf(models.Model):
def __str__(self):
return str('Computing sys conf for {} with id "{}"'.format(self.computing, self.id))
return 'Computing sys conf for {} with id "{}"'.format(self.computing, self.id)
......@@ -258,10 +258,13 @@ class ComputingUserConf(models.Model):
computing = models.ForeignKey(Computing, related_name='+', on_delete=models.CASCADE)
data = JSONField(blank=True, null=True)
@property
def id(self):
return str('Computing user conf for {} with id "{}" of user "{}"'.format(self.computing, self.id, self.user))
return str(self.uuid).split('-')[0]
def __str__(self):
return 'Computing user conf for {} with id "{}" of user "{}"'.format(self.computing, self.id, self.user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment