diff --git a/efile_app/efile/migrations/0039_remove_preview_step.py b/efile_app/efile/migrations/0039_remove_preview_step.py new file mode 100644 index 00000000..ec6a0691 --- /dev/null +++ b/efile_app/efile/migrations/0039_remove_preview_step.py @@ -0,0 +1,19 @@ +# Generated by Django 5.2.17 on 2026-10-09 21:20 + +import efile.workflow +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('efile', '0038_existing_case_identity'), + ] + + operations = [ + migrations.AlterField( + model_name='filingdraft', + name='current_step', + field=models.CharField(choices=[('options', 'Options'), ('filing_path', 'Start'), ('upload_documents', 'Upload documents'), ('extraction_review', 'Confirm filing'), ('case_lookup', 'Find your case'), ('case_confirmation', 'Confirm your case'), ('document_checklist', 'Check documents'), ('organize_documents', 'Organize documents'), ('your_information', 'Your information'), ('parties', 'People in this filing'), ('party_details', 'Person details'), ('case_questions', 'Case questions'), ('payment', 'Fees'), ('review', 'Review'), ('confirmation', 'Confirmation')], default=efile.workflow.WorkflowStepKey['OPTIONS'], max_length=64), + ), + ] diff --git a/efile_app/efile/services/document_previews.py b/efile_app/efile/services/document_previews.py index 90c43e1c..0ae2704f 100644 --- a/efile_app/efile/services/document_previews.py +++ b/efile_app/efile/services/document_previews.py @@ -13,7 +13,7 @@ class DocumentReviewError(ValueError): """The displayed documents cannot be approved.""" - def __init__(self, message, *, status=200): + def __init__(self, message, *, status=422): super().__init__(message) self.status = status diff --git a/efile_app/efile/templates/efile/extraction_review.html b/efile_app/efile/templates/efile/extraction_review.html index 838c130c..06e1dc44 100644 --- a/efile_app/efile/templates/efile/extraction_review.html +++ b/efile_app/efile/templates/efile/extraction_review.html @@ -107,11 +107,16 @@
{{ preview_error }}
{% endif %} + {% translate "Change files" %} + {% for document in documents %} + {% include "efile/components/document_preview.html" %} + {% endfor %}