fix error in gitignore
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user