Commit 554de61a authored by lukas.burgey's avatar lukas.burgey
Browse files

Fix RabbitMQInstance serializer

parent 3b8f304c
Pipeline #80067 failed with stage
in 23 seconds
......@@ -2,14 +2,13 @@
# pylint: disable=abstract-method
from django_mysql.models import JSONField
from rest_framework.serializers import ModelSerializer, DictField, ListField
from rest_framework.serializers import Serializer, ModelSerializer, DictField, ListField, CharField
from rest_polymorphic.serializers import PolymorphicSerializer
from feudal.backend.models import Service
from feudal.backend.models.users import User, SSHPublicKey
from feudal.backend.models.deployments import Deployment, VODeployment, ServiceDeployment, DeploymentState, CredentialState
from feudal.backend.models.auth.serializers.clients import VOSerializer
from feudal.backend.brokers import RabbitMQInstance
class ServiceSerializer(ModelSerializer):
......@@ -49,12 +48,8 @@ class UserSerializer(ModelSerializer):
]
class RabbitMQInstanceSerializer(ModelSerializer):
class Meta:
model = RabbitMQInstance
fields = [
'vhost',
]
class RabbitMQInstanceSerializer(Serializer):
vhost = CharField()
DEPLOYMENT_FIELDS = (
......
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