python3Packages.django-polymorphic: 4.0.0 -> 4.1.0

https://github.com/jazzband/django-polymorphic/releases/tag/v4.1.0

This commit was automatically generated using update-python-libraries.
This commit is contained in:
Martin Weinelt
2025-08-09 18:59:08 +02:00
parent 6ad7b452d5
commit 54d1c13cd0
2 changed files with 2 additions and 29 deletions
@@ -11,21 +11,16 @@
buildPythonPackage rec {
pname = "django-polymorphic";
version = "4.0.0";
version = "4.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django-polymorphic";
repo = "django-polymorphic";
tag = "v${version}";
hash = "sha256-cEV9gnc9gLpAVmYkzSaQwDbgXsklMTq71edndDJeP9E=";
hash = "sha256-QcJUKGhWPUHhVVsEZhhjN411Pz4Wn7OL2fhotPOGVm4=";
};
patches = [
# https://github.com/jazzband/django-polymorphic/issues/616
./django-5.1-compat.patch
];
build-system = [ setuptools ];
dependencies = [ django ];
@@ -1,22 +0,0 @@
From a2c48cedc45db52469b93b6fa7a5d50c6722586f Mon Sep 17 00:00:00 2001
From: Ben Gosney <bengosney@googlemail.com>
Date: Sun, 25 Aug 2024 14:49:33 +0100
Subject: [PATCH] fix(query): handle None
---
polymorphic/query.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/polymorphic/query.py b/polymorphic/query.py
index 8e93281a..2d2df6c3 100644
--- a/polymorphic/query.py
+++ b/polymorphic/query.py
@@ -278,7 +278,7 @@ def tree_node_test___lookup(my_model, node):
elif hasattr(a, "get_source_expressions"):
for source_expression in a.get_source_expressions():
test___lookup(source_expression)
- else:
+ elif a is not None:
assert "___" not in a.name, ___lookup_assert_msg
for a in args: