mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1a9faa025a
* fix: file name change * feat: added xml json and csv export * chore: added openpyxl package * fix: added initiated_by field * fix: added initiated by details * dev: refactoring * fix: rendering assignee name and labels in sheet * fix: handeled exception in label * feat: implemented link expiration scheduler(8 days) * fix: removed the expired field --------- Co-authored-by: NarayanBavisetti <narayan311@gmail.com> Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
27 lines
672 B
Python
27 lines
672 B
Python
# Module imports
|
|
from .base import BaseSerializer
|
|
from plane.db.models import ExporterHistory
|
|
from .user import UserLiteSerializer
|
|
|
|
|
|
class ExporterHistorySerializer(BaseSerializer):
|
|
initiated_by_detail = UserLiteSerializer(source="initiated_by", read_only=True)
|
|
|
|
class Meta:
|
|
model = ExporterHistory
|
|
fields = [
|
|
"id",
|
|
"created_at",
|
|
"updated_at",
|
|
"project",
|
|
"provider",
|
|
"status",
|
|
"url",
|
|
"initiated_by",
|
|
"initiated_by_detail",
|
|
"token",
|
|
"created_by",
|
|
"updated_by",
|
|
]
|
|
read_only_fields = fields
|