From fd08f1b99e62cd2c315375a4323a8821d2254e28 Mon Sep 17 00:00:00 2001 From: LeMx <153226500+MaxxMXSZ@users.noreply.github.com> Date: Sat, 8 Jun 2024 12:30:45 +0200 Subject: [PATCH] admin-panel: Put hidden to use in Special events (#278) * yippie * .. * ..! bruh github auto 2 ditto marks when --- ballsdex/core/admin/resources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ballsdex/core/admin/resources.py b/ballsdex/core/admin/resources.py index 8d132bbb..ad57c6e9 100755 --- a/ballsdex/core/admin/resources.py +++ b/ballsdex/core/admin/resources.py @@ -81,7 +81,8 @@ class SpecialResource(Model): filters = [ filters.Search( name="name", label="Name", search_mode="icontains", placeholder="Search for events" - ) + ), + filters.Boolean(name="hidden", label="Hidden"), ] fields = [ "name", @@ -107,6 +108,7 @@ class SpecialResource(Model): ), "emoji", "tradeable", + "hidden", ] async def get_actions(self, request: Request) -> List[Action]: