From a24cc51a6a780d075ed7c23c4f010bab172d68f6 Mon Sep 17 00:00:00 2001 From: Sushil Tiwari Date: Mon, 19 Jan 2026 13:56:53 +0545 Subject: [PATCH] feat(admin2): add filtering by code on admin2 endpoint --- api/filter_set.py | 1 + assets | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/filter_set.py b/api/filter_set.py index 05b696afb..d486a8660 100644 --- a/api/filter_set.py +++ b/api/filter_set.py @@ -162,6 +162,7 @@ class Meta: model = Admin2 fields = { "id": ("exact", "in"), + "code": ("exact", "in"), "admin1": ("exact", "in"), "admin1__country": ("exact", "in"), "admin1__country__iso3": ("exact", "in"), diff --git a/assets b/assets index 960b3601a..d5c165961 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 960b3601a961e07a552f384b24b5ab1041e4d033 +Subproject commit d5c1659610b42aee2e84dfdad35768b0cbc7c7f2