Skip to content

Commit

Permalink
adding description on project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Barbosa committed Dec 5, 2023
1 parent 400d59c commit cbab186
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connect/api/v2/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Meta:
"first_access",
"wa_demo_token",
"redirect_url",
"description",
]
ref_name = None

Expand All @@ -78,6 +79,7 @@ class Meta:
created_at = serializers.DateTimeField(
required=False, read_only=True, style={"show": False}
)
description = serializers.CharField(max_length=1000, required=False)

menu = serializers.SerializerMethodField()
authorization = serializers.SerializerMethodField(style={"show": False})
Expand Down Expand Up @@ -178,6 +180,7 @@ def create(self, validated_data):
created_by=user,
template_type=template_name,
project_template_type=project_template_type,
description=validated_data.get("description")
)

self.send_request_flow_product(user)
Expand Down Expand Up @@ -222,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="")
Expand Down

0 comments on commit cbab186

Please sign in to comment.