fix installation step and utm standarded.

This commit is contained in:
aminhashemi92 2025-09-09 13:15:42 +03:30
parent 204b0aa48e
commit 93db2fe7f5
10 changed files with 191 additions and 108 deletions

View file

@ -408,7 +408,7 @@ def quote_payment_step(request, instance_id, step_id):
defaults={'approved_by': request.user, 'decision': 'rejected', 'reason': reason}
)
StepRejection.objects.create(step_instance=step_instance, rejected_by=request.user, reason=reason)
# If current step is ahead of this step, reset it back to this step
# If current step is ahead of this step, reset it back to this step
try:
if instance.current_step and instance.current_step.order > step.order:
instance.current_step = step