diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-22 00:08:24 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-22 00:08:24 +0200 |
commit | 5b773f6a3cc454e26693b83169760369cf0a0b62 (patch) | |
tree | 3bedb956e0505accf622a6c42c94f3e613286bd6 /ishtar_common/models.py | |
parent | a82ae23015f8036919bae3c4a4e133e9045e6fcc (diff) | |
download | Ishtar-5b773f6a3cc454e26693b83169760369cf0a0b62.tar.bz2 Ishtar-5b773f6a3cc454e26693b83169760369cf0a0b62.zip |
Djangoization - Major refactoring (step 15)
* works on dashboards
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d8d3c3213..cff55ea5b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -407,6 +407,7 @@ class Dashboard: last_ids = history_model.objects.values('id')\ .annotate(hd=Max('history_date')) last_ids = last_ids.filter(history_type=modif_type) + from archaeological_finds.models import Find if self.model == Find: last_ids = last_ids.filter(downstream_treatment_id__isnull=True) if modif_type == '+': |