fix error in gitignore

This commit is contained in:
2026-09-24 12:32:59 +03:30
commit 86c117ee2a
165 changed files with 5963 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from rest_framework import serializers
from apps.processing.models import StepExecution
class StepExecutionSerializer(serializers.ModelSerializer):
order_number = serializers.CharField(source="order.order_number", read_only=True)
step_key = serializers.CharField(source="step.key", read_only=True)
assigned_to_name = serializers.CharField(source="assigned_to.username", read_only=True)
class Meta:
model = StepExecution
fields = [
"id", "order", "order_number", "step", "step_key", "state", "attempt",
"assigned_to", "assigned_to_name", "started_at", "completed_at",
]