#86 District column simplification

* simplifies the fetching of districts for district column
This commit is contained in:
mpeltriaux committed 2022-02-09 09:30:37 +01:00
1 parent aa338e5519
commit c5e3800c34
3 files changed
+4 -12

No files matched your search

+1 -3
View File
@@ -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()