From 07287465b0c8401d4c142f66a0b479c8ca31bbb8 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:20:50 +0100 Subject: [PATCH] fix a bug in admin panel when checking staff member --- appointment/admin.py | 1 - check_version.py | 2 +- setup.cfg | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/appointment/admin.py b/appointment/admin.py index 87e3674..2f8f24f 100644 --- a/appointment/admin.py +++ b/appointment/admin.py @@ -53,7 +53,6 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields['user'].queryset = get_user_model().objects.filter(is_staff=True) @admin.register(StaffMember) diff --git a/check_version.py b/check_version.py index 69f422b..fbf5c36 100644 --- a/check_version.py +++ b/check_version.py @@ -1,7 +1,7 @@ import requests package_name = "django-appointment" -current_version = "2.1.0" +current_version = "2.1.1" response = requests.get(f"https://pypi.org/pypi/{package_name}/json") if response.status_code == 200: diff --git a/setup.cfg b/setup.cfg index 7ab97be..6f5310c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = django-appointment -version = 2.1.0 +version = 2.1.1 description = Managing appointment scheduling with customizable slots, staff features, and conflict handling. url = https://github.com/adamspd/django-appointment author = Adams Pierre David