Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipleObjectMixin.get_queryset can return Iterables #323

Closed
wants to merge 1 commit into from

Conversation

@@ -17,7 +17,7 @@ class MultipleObjectMixin(ContextMixin):
paginator_class: Type[Paginator] = ...
page_kwarg: str = ...
ordering: Sequence[str] = ...
def get_queryset(self) -> QuerySet: ...
def get_queryset(self) -> Union[Iterable, QuerySet]: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iterable is generic. Can you please add an argument there?
And also a test case for it. Because queryset part is highly complex.

@rik
Copy link
Contributor Author

rik commented Apr 2, 2023

I believe this was fixed in #909

@rik rik closed this Apr 2, 2023
@rik rik deleted the get-queryset-iterable branch April 2, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants