Commit 0af95896 authored by Lukas Burgey's avatar Lukas Burgey

Remove an obsolete field

parent 7d080bdc
......@@ -28,7 +28,7 @@ class ServiceSerializer(serializers.ModelSerializer):
class DeploymentStateItemSerializer(serializers.ModelSerializer):
service = ServiceSerializer()
services = ServiceSerializer(many=True)
#services = ServiceSerializer(many=True)
key = backend_serializers.SSHPublicKeyRefSerializer()
site = SiteSerializer()
questionnaire = serializers.JSONField()
......@@ -45,7 +45,7 @@ class DeploymentStateItemSerializer(serializers.ModelSerializer):
'credentials',
'key',
'service',
'services',
#'services',
'group',
]
......
......@@ -647,7 +647,6 @@ class Deployment(models.Model):
null=True,
blank=True,
)
service = models.ForeignKey(
Service,
related_name='deployments',
......@@ -1026,11 +1025,6 @@ class DeploymentStateItem(models.Model):
def group(self):
return self.parent.group
@property
def services(self):
if self.group is None:
return [self.service]
@classmethod
def get_state_item(cls, parent=None, site=None, service=None):
query = parent.state_items.filter(
......
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