#86 District column simplification
* simplifies the fetching of districts for district column
This commit is contained in:
parent
591e35a0e2
commit
cb6a2d4d91
@ -133,9 +133,7 @@ class CompensationTable(BaseTable, TableRenderMixin):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
parcels = value.parcels.filter(
|
parcels = value.get_underlying_parcels().values_list(
|
||||||
parcelintersection__calculated_on__isnull=False,
|
|
||||||
).values_list(
|
|
||||||
"gmrkng",
|
"gmrkng",
|
||||||
flat=True
|
flat=True
|
||||||
).distinct()
|
).distinct()
|
||||||
@ -296,9 +294,7 @@ class EcoAccountTable(BaseTable, TableRenderMixin):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
parcels = value.parcels.filter(
|
parcels = value.get_underlying_parcels().values_list(
|
||||||
parcelintersection__calculated_on__isnull=False,
|
|
||||||
).values_list(
|
|
||||||
"gmrkng",
|
"gmrkng",
|
||||||
flat=True
|
flat=True
|
||||||
).distinct()
|
).distinct()
|
||||||
|
@ -103,9 +103,7 @@ class EmaTable(BaseTable, TableRenderMixin):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
parcels = value.parcels.filter(
|
parcels = value.get_underlying_parcels().values_list(
|
||||||
parcelintersection__calculated_on__isnull=False,
|
|
||||||
).values_list(
|
|
||||||
"gmrkng",
|
"gmrkng",
|
||||||
flat=True
|
flat=True
|
||||||
).distinct()
|
).distinct()
|
||||||
|
@ -130,9 +130,7 @@ class InterventionTable(BaseTable, TableRenderMixin):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
parcels = value.parcels.filter(
|
parcels = value.get_underlying_parcels().values_list(
|
||||||
parcelintersection__calculated_on__isnull=False,
|
|
||||||
).values_list(
|
|
||||||
"gmrkng",
|
"gmrkng",
|
||||||
flat=True
|
flat=True
|
||||||
).distinct()
|
).distinct()
|
||||||
|
Loading…
Reference in New Issue
Block a user