* feat: init slack integration * dev: create model and update existing view for slack * dev: update slack sync model and create view to install slack * dev: workspace integration query * dev: update the metadata validation for access_token and team_id and save config to database * dev: update validation for team_id * dev: update validation * dev: update validations * dev: remove bot access token field from sync * dev: handle integrity exception
14 lines
363 B
Python
14 lines
363 B
Python
# Module imports
|
|
from plane.api.serializers import BaseSerializer
|
|
from plane.db.models import SlackProjectSync
|
|
|
|
|
|
class SlackProjectSyncSerializer(BaseSerializer):
|
|
class Meta:
|
|
model = SlackProjectSync
|
|
fields = "__all__"
|
|
read_only_fields = [
|
|
"project",
|
|
"workspace",
|
|
"workspace_integration",
|
|
]
|