diff --git a/connect/api/v1/project/serializers.py b/connect/api/v1/project/serializers.py index 74603c8e..6f9d44ed 100644 --- a/connect/api/v1/project/serializers.py +++ b/connect/api/v1/project/serializers.py @@ -65,6 +65,7 @@ class Meta: "first_access", "wa_demo_token", "redirect_url", + "description", ] ref_name = None @@ -86,6 +87,7 @@ class Meta: created_at = serializers.DateTimeField( required=False, read_only=True, style={"show": False} ) + description = serializers.CharField(max_length=1000, required=False) authorizations = serializers.SerializerMethodField(style={"show": False}) pending_authorizations = serializers.SerializerMethodField(style={"show": False}) authorization = serializers.SerializerMethodField(style={"show": False}) diff --git a/connect/api/v2/projects/serializers.py b/connect/api/v2/projects/serializers.py index 58aa97c8..ae0eb180 100644 --- a/connect/api/v2/projects/serializers.py +++ b/connect/api/v2/projects/serializers.py @@ -225,6 +225,7 @@ def publish_create_project_message(self, instance): "organization_id": instance.organization.inteligence_organization, "extra_fields": extra_fields if instance.is_template else {}, "authorizations": authorizations, + "description": instance.description, } rabbitmq_publisher = RabbitmqPublisher() rabbitmq_publisher.send_message(message_body, exchange="projects.topic", routing_key="")