diff --git a/compensation/tables.py b/compensation/tables.py index 5a3da24b..96888cc1 100644 --- a/compensation/tables.py +++ b/compensation/tables.py @@ -133,9 +133,7 @@ class CompensationTable(BaseTable, TableRenderMixin): Returns: """ - parcels = value.parcels.filter( - parcelintersection__calculated_on__isnull=False, - ).values_list( + parcels = value.get_underlying_parcels().values_list( "gmrkng", flat=True ).distinct() @@ -296,9 +294,7 @@ class EcoAccountTable(BaseTable, TableRenderMixin): Returns: """ - parcels = value.parcels.filter( - parcelintersection__calculated_on__isnull=False, - ).values_list( + parcels = value.get_underlying_parcels().values_list( "gmrkng", flat=True ).distinct() diff --git a/ema/tables.py b/ema/tables.py index bf3709de..f9689517 100644 --- a/ema/tables.py +++ b/ema/tables.py @@ -103,9 +103,7 @@ class EmaTable(BaseTable, TableRenderMixin): Returns: """ - parcels = value.parcels.filter( - parcelintersection__calculated_on__isnull=False, - ).values_list( + parcels = value.get_underlying_parcels().values_list( "gmrkng", flat=True ).distinct() diff --git a/intervention/tables.py b/intervention/tables.py index 96d17c59..f535039d 100644 --- a/intervention/tables.py +++ b/intervention/tables.py @@ -130,9 +130,7 @@ class InterventionTable(BaseTable, TableRenderMixin): Returns: """ - parcels = value.parcels.filter( - parcelintersection__calculated_on__isnull=False, - ).values_list( + parcels = value.get_underlying_parcels().values_list( "gmrkng", flat=True ).distinct()