Commit b1f6b7f6 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Remove outcommented method

parent 47d4dda5
...@@ -171,19 +171,6 @@ class SSHPublicKey(models.Model): ...@@ -171,19 +171,6 @@ class SSHPublicKey(models.Model):
return self.name return self.name
# finally delete the key if all the deployments are withdrawn
# and the withdrawal was seen by all clients
# @receiver(m2m_changed, sender=SSHPublicKey)
# def delete_withdrawn_ssh_key(
# sender, instance=None, created=False, **kwargs):
#
# if (instance.deleted
# and not instance.deployments.exists()
# and not instance.withdrawn_deployments.exists()):
# # TODO this does not work (see the m2m_changed signal doc)
# instance.delete()
class Deployment(models.Model): class Deployment(models.Model):
user = models.ForeignKey( user = models.ForeignKey(
User, User,
...@@ -249,7 +236,3 @@ class Deployment(models.Model): ...@@ -249,7 +236,3 @@ class Deployment(models.Model):
deployment_change.send(sender=self.__class__, instance=self) deployment_change.send(sender=self.__class__, instance=self)
# @receiver(post_save, sender=Deployment)
# def publish_deployment_creation(
# sender, instance=None, created=False, **kwargs):
# instance.send_change()
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