Commit 16e79bff authored by lukas.burgey's avatar lukas.burgey

Remove an obsolete property

parent 11c0d90e
......@@ -92,11 +92,6 @@ class Deployment(PolymorphicModel):
default=True,
)
# credentials provided by the backend to the clients
@property
def credentials(self):
return self.user.credentials
@property
def state(self):
if self.states.exists():
......@@ -117,7 +112,7 @@ class Deployment(PolymorphicModel):
return self.state_target == self.state
def _assure_states_exist(self):
def _assure_states_exist(self): # pragma: no cover
raise NotImplementedError('Should be overwritten in subclass')
def update(self):
......@@ -173,13 +168,13 @@ class Deployment(PolymorphicModel):
self.publish_to_user()
self.publish_to_client()
def msg(self, msg):
def msg(self, msg): # pragma: no cover
try:
return '{} - {}'.format(self, msg)
except: # this call breaks sometimes when deleting from the django admin
return 'broken-deployment'
def __str__(self):
def __str__(self): # pragma: no cover
return 'Abstr. Deployment:({})#{}'.format(
self.user,
self.id,
......@@ -246,7 +241,6 @@ class VODeployment(Deployment):
)
class ServiceDeployment(Deployment):
service = models.ForeignKey(
Service,
......@@ -295,6 +289,7 @@ def inform_states_about_deletion(sender, instance=None, **kwargs):
instance.save()
instance.target_changed()
class DeploymentState(models.Model):
deployments = models.ManyToManyField(
Deployment,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment