From 484cbeaf432fcf6d79151503f166623c85aef4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20M=C3=A1tl?= Date: Fri, 13 Jan 2023 12:08:41 +0100 Subject: [PATCH] Upgraded libraries --- .github/workflows/django.yml | 2 +- .gitignore | 1 - pydjamodb/queryset.py | 4 ++-- tests/requirements.txt | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 13e2b02..319b11d 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -12,7 +12,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] services: dynamodb: diff --git a/.gitignore b/.gitignore index bf8206a..3d2f9df 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ CACHE/ ###################### .DS_Store .DS_Store? -._* .Spotlight-V100 .Trashes thumbs.db diff --git a/pydjamodb/queryset.py b/pydjamodb/queryset.py index 7f6de8d..1235460 100644 --- a/pydjamodb/queryset.py +++ b/pydjamodb/queryset.py @@ -179,9 +179,9 @@ def _get_filter(self, field, operator, value): elif operator == 'in': return field.is_in(value) elif operator == 'exists' and value: - return field.exists(value) + return field.exists() elif operator == 'exists' and not value: - return field.does_not_exist(value) + return field.does_not_exist() elif operator == 'startswith': return field.startswith(value) elif operator == 'contains': diff --git a/tests/requirements.txt b/tests/requirements.txt index 2a3869a..88a9bda 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,5 +1,5 @@ django>=2.0, <4.0 -https://github.com/druids/pynamodb/tarball/AddTagsSupport#egg=pynamodb -https://github.com/druids/germanium/tarball/AddedSignals +pynamodb==5.3.4 +django-germanium==2.3.6 flake8 coveralls