summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 17:41:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 17:41:18 +0100
commitb6a58ae42723a93df08dca35646b6f5ea1270d49 (patch)
treea51e52ac398b8303e7e99309b232ec49e104d1bd
parentec2ef1a59c01d79d0341545b92a07a60dee6321d (diff)
downloadIshtar-b6a58ae42723a93df08dca35646b6f5ea1270d49.tar.bz2
Ishtar-b6a58ae42723a93df08dca35646b6f5ea1270d49.zip
Fix treatment and file treatment sheet display (bad QR code link)
-rw-r--r--CHANGES.md4
-rw-r--r--archaeological_finds/models_treatments.py4
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES.md b/CHANGES.md
index acddcd405..78b175631 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -9,9 +9,11 @@ Ishtar changelog
### Features/improvements ###
- add custom cached_label configuration for each main item
- sheet document: better UI for files
+- add "created" field on main items in order to facilitate queries
### Bug fixes ###
-- Find form: remove TAQ/TPQ check
+- find form: remove TAQ/TPQ check
+- fix treatment and file treatment sheet display (bad QR code link)
v4.0.42 - 2023-01-25
--------------------
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 509d67f70..88f267a9b 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -95,6 +95,8 @@ class Treatment(
ShortMenuItem,
):
SLUG = "treatment"
+ APP = "archaeological-finds"
+ MODEL = SLUG
SHOW_URL = "show-treatment"
TABLE_COLS = (
"year",
@@ -1015,6 +1017,8 @@ class TreatmentFile(
ShortMenuItem,
):
SLUG = "treatmentfile"
+ APP = "archaeological-finds"
+ MODEL = SLUG
SHOW_URL = "show-treatmentfile"
DELETE_URL = "delete-treatmentfile"
TABLE_COLS = ["type", "year", "index", "internal_reference", "name"]