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

Add object_list to BaseListView #833

Merged

Conversation

mthuurne
Copy link
Contributor

Related issues

Closes #790

The Django documentation describes object_list as "the list of objects (usually, but not necessarily a queryset)", so I picked Sequence as the type.

While `object_list` isn't defined at construction, `BaseListView.get()`
sets it when handling a request, so in practice it is defined whenever
a list view is doing its work.

The Django documentation describes `object_list` as "the list of
objects (usually, but not necessarily a queryset)", so I picked
`Sequence` as the type.

Closes typeddjango#790
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks!

@sobolevn sobolevn merged commit 060dc3b into typeddjango:master Jan 28, 2022
@mthuurne mthuurne deleted the add-object_list-to-baselistview branch January 31, 2022 12:11
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.

Add object_list to BaseListView
2 participants