Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/changelog/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

v4.11.4 (2026-05-28)
--------------------

* Fixed `pylint issue starting in version 4.11.0: E1111 assignment-from-no-return
<https://github.com/django-commons/django-polymorphic/issues/898>`_


v4.11.3 (2026-04-30)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "django-polymorphic"
version = "4.11.3"
version = "4.11.4"
description = "Seamless polymorphic inheritance for Django models."
readme = "README.md"
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion src/polymorphic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from typing import Final

VERSION: Final[str] = "4.11.3"
VERSION: Final[str] = "4.11.4"

__title__: Final = "Django Polymorphic"
__version__ = VERSION # version synonym for backwards compatibility
Expand Down
7 changes: 5 additions & 2 deletions src/polymorphic/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ class PolymorphicManager(models.Manager[_All], Generic[_All, _Base]):

if TYPE_CHECKING:

def all(self) -> PolymorphicQuerySet[_All, _Base]: ...
def filter(self, *args: Any, **kwargs: Any) -> PolymorphicQuerySet[_All, _Base]: ...
def all(self) -> PolymorphicQuerySet[_All, _Base]:
return self.get_queryset()

def filter(self, *args: Any, **kwargs: Any) -> PolymorphicQuerySet[_All, _Base]:
return self.get_queryset().filter(*args, **kwargs)

@classmethod
def from_queryset(
Expand Down
2 changes: 1 addition & 1 deletion src/polymorphic/related_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_queryset(self, **hints: Any) -> QuerySet[Any]:
self.related.related_model,
"_base_objects",
# don't fail if we've been used on a non-poly model
self.related.related_model._base_manager, # type: ignore[union-attr]
self.related.related_model._base_manager,
)
)
.db_manager(hints=hints)
Expand Down
Loading
Loading