mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
add correspondent to the index
This commit is contained in:
parent
296c113b16
commit
e45208bf01
1 changed files with 4 additions and 2 deletions
|
|
@ -55,7 +55,8 @@ def get_schema():
|
||||||
return Schema(
|
return Schema(
|
||||||
id=NUMERIC(stored=True, unique=True, numtype=int),
|
id=NUMERIC(stored=True, unique=True, numtype=int),
|
||||||
title=TEXT(stored=True),
|
title=TEXT(stored=True),
|
||||||
content=TEXT()
|
content=TEXT(),
|
||||||
|
correspondent=TEXT(stored=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -71,7 +72,8 @@ def update_document(writer, doc):
|
||||||
writer.update_document(
|
writer.update_document(
|
||||||
id=doc.pk,
|
id=doc.pk,
|
||||||
title=doc.title,
|
title=doc.title,
|
||||||
content=doc.content
|
content=doc.content,
|
||||||
|
correspondent=doc.correspondent.name if doc.correspondent else None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue