Commit fcc7fad9 authored by Lukas Burgey's avatar Lukas Burgey

Remove an obsolete field

parent 588b3aa2
......@@ -573,11 +573,6 @@ class Deployment(models.Model):
related_name='deployments',
blank=True,
)
ssh_keys_to_remove = models.ManyToManyField(
SSHPublicKey,
related_name='removen_deployments',
blank=True,
)
is_active = models.BooleanField(
default=True,
)
......@@ -635,9 +630,6 @@ class Deployment(models.Model):
raise Exception('deployment deactivated')
self.ssh_keys.add(key)
if key in self.ssh_keys_to_remove.all():
self.ssh_keys_to_remove.remove(key)
self.save()
self._deploy_key(key)
......@@ -649,9 +641,6 @@ class Deployment(models.Model):
raise Exception('deployment deactivated')
self.ssh_keys.remove(key)
# keys which are to be removen by the clients
self.ssh_keys_to_remove.add(key)
self.save()
self._remove_key(key)
......
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