From f20d85e2e4be8a25b01e8901f1c8b1073411f065 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 26 Jan 2024 13:56:27 -0500 Subject: [PATCH] Add django-filters --- cmsmanage/settings/base.py | 1 + pdm.lock | 15 ++++++++++++++- pyproject.toml | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/cmsmanage/settings/base.py b/cmsmanage/settings/base.py index f1ffae0..0fbf010 100644 --- a/cmsmanage/settings/base.py +++ b/cmsmanage/settings/base.py @@ -39,6 +39,7 @@ INSTALLED_APPS = [ "django_q", "django_nh3", "django_tables2", + "django_filters", "tasks.apps.TasksConfig", "rentals.apps.RentalsConfig", "membershipworks.apps.MembershipworksConfig", diff --git a/pdm.lock b/pdm.lock index 7f610e0..c8d5884 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "debug", "lint", "server", "typing", "dev"] strategy = ["cross_platform"] lock_version = "4.4.1" -content_hash = "sha256:c0e5c80b47118152c5b0167a588d3d1d078b0f2a710b8fc97869052ca04e7874" +content_hash = "sha256:60448fef6b60a6df3ecb238b1737ba98b98a0af22c3a7e35e1ad7faf5028529b" [[package]] name = "aiohttp" @@ -459,6 +459,19 @@ files = [ {file = "django_extensions-3.2.3-py3-none-any.whl", hash = "sha256:9600b7562f79a92cbf1fde6403c04fee314608fefbb595502e34383ae8203401"}, ] +[[package]] +name = "django-filter" +version = "23.5" +requires_python = ">=3.7" +summary = "Django-filter is a reusable Django application for allowing users to filter querysets dynamically." +dependencies = [ + "Django>=3.2", +] +files = [ + {file = "django-filter-23.5.tar.gz", hash = "sha256:67583aa43b91fe8c49f74a832d95f4d8442be628fd4c6d65e9f811f5153a4e5c"}, + {file = "django_filter-23.5-py3-none-any.whl", hash = "sha256:99122a201d83860aef4fe77758b69dda913e874cc5e0eaa50a86b0b18d708400"}, +] + [[package]] name = "django-markdownx" version = "4.0.7" diff --git a/pyproject.toml b/pyproject.toml index fc6b1d3..2f463eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ dependencies = [ "nh3~=0.2", "django-tables2~=2.7", "tablib[ods,xlsx]~=3.5", + "django-filter~=23.5", ] requires-python = ">=3.11"