From 4739fff068d09b1f312f08d8704bd4c9df47c3a8 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 01:36:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D1=8B=D0=B4=D0=B0=D1=87=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=82=D0=BE=D1=87=D0=BA=D0=B0=D0=BC=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/repositories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/organizations/repositories.py b/src/organizations/repositories.py index 72928c5..a9d03ec 100644 --- a/src/organizations/repositories.py +++ b/src/organizations/repositories.py @@ -47,7 +47,7 @@ class OrganizationRepository(BaseRepository): @classmethod def get_for_map(cls, categories, coords1, coords2): rectangle = Polygon.from_bbox((*coords1, *coords2)) - return cls.get_by_categories(categories).filter(location__within=rectangle) + return cls.get_by_categories(categories).filter(location__coords__within=rectangle) class OrganizationImagesRepository(BaseRepository):