#86 District column simplification
* simplifies the fetching of districts for district column
This commit is contained in:
parent
aa338e5519
commit
c5e3800c34
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user