mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
* chore: add project details on importer service endpoint * dev: add select related for imports
15 lines
441 B
Python
15 lines
441 B
Python
# Module imports
|
|
from .base import BaseSerializer
|
|
from .user import UserLiteSerializer
|
|
from .project import ProjectLiteSerializer
|
|
from plane.db.models import Importer
|
|
|
|
|
|
class ImporterSerializer(BaseSerializer):
|
|
initiated_by_detail = UserLiteSerializer(source="initiated_by", read_only=True)
|
|
project_detail = ProjectLiteSerializer(source="project", read_only=True)
|
|
|
|
class Meta:
|
|
model = Importer
|
|
fields = "__all__"
|