diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-15 17:52:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-15 17:52:06 +0100 |
commit | 7e147cafca0f6bc47c43e4ffa781fa64e5b0bcaa (patch) | |
tree | b0207f812a7b4134ff25b4945a16e8611b086327 /archaeological_operations/models.py | |
parent | dd0a8c093c34a22ab4ba24a712292927074ec4dc (diff) | |
download | Ishtar-7e147cafca0f6bc47c43e4ffa781fa64e5b0bcaa.tar.bz2 Ishtar-7e147cafca0f6bc47c43e4ffa781fa64e5b0bcaa.zip |
Operation sheet: add list of containers (refs #3458)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 727b29cb5..e741f5644 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -507,6 +507,12 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, return FindSource.objects.filter( find__base_finds__context_record__operation=self) + def containers_q(self): + from archaeological_warehouse.models import Container + return Container.objects.filter( + finds__base_finds__context_record__operation=self + ) + associated_file_short_label_lbl = _(u"Archaeological file") full_code_patriarche_lbl = _(u"Code patriarche") |