Skip to content

Commit

Permalink
admin-panel: Put hidden to use in Special events (#278)
Browse files Browse the repository at this point in the history
* yippie

* ..

* ..!

bruh github auto 2 ditto marks when
  • Loading branch information
MaxxMXSZ authored Jun 8, 2024
1 parent 8e64c5d commit fd08f1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ballsdex/core/admin/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -107,6 +108,7 @@ class SpecialResource(Model):
),
"emoji",
"tradeable",
"hidden",
]

async def get_actions(self, request: Request) -> List[Action]:
Expand Down

0 comments on commit fd08f1b

Please sign in to comment.