X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=qcg%2Fmodels.py;h=8c2be2db61fe9c21985f03f3118b59e4d22d5e0b;hb=063e6b5a3e9c75e43c93bbcf06424181dd4ad894;hp=7205932a9aa06368534ededfeb08cd12a02864c6;hpb=3475cba350b72ab2cf4115455d54384a231c81b4;p=qcg-portal.git diff --git a/qcg/models.py b/qcg/models.py index 7205932..8c2be2d 100644 --- a/qcg/models.py +++ b/qcg/models.py @@ -168,8 +168,8 @@ class Task(models.Model): self.reserved_time_start, self.reserved_time_finish = value @property - def hosts(self): - return {alloc.host_name for alloc in self.allocations.all()} + def short_host_names(self): + return {alloc.host_name.split('.')[0] for alloc in self.allocations.all()} class Allocation(models.Model):