diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-02-20 13:47:02 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-02-20 13:47:02 +0100 |
| commit | 458b2f11ce74222ea45fcdab31e7279e53d44ab2 (patch) | |
| tree | 4c3cf6a3599c7c6f578ca1392ef0adf38257334e /archaeological_operations/models.py | |
| parent | fed2e102b0b96c6e4dae8f3f982aa35404f21ffd (diff) | |
| download | Ishtar-458b2f11ce74222ea45fcdab31e7279e53d44ab2.tar.bz2 Ishtar-458b2f11ce74222ea45fcdab31e7279e53d44ab2.zip | |
✨ sheet archaeological site - tables for context record from operation or directly link (refs #6623)
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 a976e427f..5a787d19e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -789,6 +789,12 @@ class ArchaeologicalSite( base_finds__context_record__archaeological_site__pk=self.pk ) + @property + def operations_has_cr(self): + q = Operation.objects.filter( + archaeological_sites__id=self.pk, context_record__isnull=False) + return q.exists() + def get_extra_actions(self, request, window_id=None): """ For sheet template |
