Skip to content

Add __bool__ to RESTQueryset #3

@miketheredherring

Description

@miketheredherring

This allows if use of:

if queryset:
    for model in queryset:
        logic()

For efficiency purposes, a copy of the data in this use case should be saved to the queryset being evaluated for potential use and iteration.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions