Fixes from merge

This commit is contained in:
Adolfo Gómez García 2018-07-31 23:59:59 +02:00
parent 8867ef7036
commit 34028b99e7
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ logger = logging.getLogger(__name__)
class DeployedService(UUIDModel, TaggingMixin):
"""
A deployed service is the Service produced element that is assigned finally to an user (i.e. a Virtual Machine, etc..)
'''
"""
# pylint: disable=model-missing-unicode
name = models.CharField(max_length=128, default='')
short_name = models.CharField(max_length=32, default='')

View File

@ -164,7 +164,7 @@ class TicketStore(UUIDModel):
for v in TicketStore.objects.all():
if now > v.stamp + timedelta(seconds=v.validity):
v.delete()
cleanSince = now - datetime.timedelta(seconds=TicketStore.MAX_VALIDITY)
cleanSince = now - datetime.timedelta(seconds=TicketStore.MAX_VALIDITY)
number = TicketStore.objects.filter(stamp__lt=cleanSince).delete()
def __unicode__(self):