Skip to content

1.2 breaks Prefetch compatibility for Django 1.10- #290

@antwan

Description

@antwan

When using custom Prefetch with polymorphic model, this is now failing.

Prefetch('field', queryset=Fieldmodel.objects.filter(somefilter=somevalue))

ValueError('Prefetch querysets cannot use values().')

Django 1.11 works here because it's checking the subclasses of queryset iterator, but 1.10 is broken.
Maybe it's worth fixing this, or document that polymorphic 1.2 requires Django 1.11+.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions