mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-28 13:37:32 +00:00
* uses_remote_service + allow_remote to allow opt-in / out of remote OCR * Add to parser dev docs * remote_ocr_mode config setting * Checks for remote_ocr_mode and fix import * Update config.component.spec.ts * More tests for remote_ocr_mode * Docs for remote_ocr_mode * Ok, wire up the remote_ocr_mode with allow_remote for consumer * Update consumer.py * Format remote OCR mode check tests * Use get_choice_from_env
28 lines
819 B
Python
28 lines
819 B
Python
# Generated by Django 5.2.16 on 2026-08-10 15:43
|
|
|
|
from django.db import migrations
|
|
from django.db import models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("paperless", "0014_applicationconfiguration_remote_ocr_api_key_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="applicationconfiguration",
|
|
name="remote_ocr_mode",
|
|
field=models.CharField(
|
|
blank=True,
|
|
choices=[
|
|
("always", "All supported documents"),
|
|
("workflow_only", "Only when a workflow enables it"),
|
|
],
|
|
max_length=32,
|
|
null=True,
|
|
verbose_name="Sets which documents are sent to the remote OCR engine",
|
|
),
|
|
),
|
|
]
|