diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-07 16:52:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 10:46:13 +0200 |
commit | 8b3347dd635eef93e7af1a71c4183630277a7f5f (patch) | |
tree | 68d54bb40b2006fc2a3d5ae938108e9b950eca59 /ishtar_common/models.py | |
parent | 07f24f648504004adbb57b16bd18fbd23a3c3998 (diff) | |
download | Ishtar-8b3347dd635eef93e7af1a71c4183630277a7f5f.tar.bz2 Ishtar-8b3347dd635eef93e7af1a71c4183630277a7f5f.zip |
Document form: add related fields (refs #4107)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 758596279..3715c0326 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3060,6 +3060,11 @@ class Document(OwnPerms, ImageModel, FullSearch): 'treatment_files', 'treatments', 'finds', 'context_records', 'operations', 'sites', 'warehouses', ] + # same fields but in order for forms + RELATED_MODELS_ALT = [ + 'finds', 'context_records', 'operations', 'sites', 'warehouses', + 'treatments', 'treatment_files', + ] SLUG = 'document' LINK_SPLIT = u"<||>" |