Skip to content

Changed behavior of QueryResult #369

Closed
@andreymal

Description

@andreymal

This change broke my website:

-class QueryResult(list):
+class QueryResult(object):

0.7.3:

>>> [7] + select(p for p in Person if p.age > 20)[:]
[7, Person[2], Person[3]]

0.7.5:

>>> [7] + select(p for p in Person if p.age > 20)[:]
TypeError: can only concatenate list (not "QueryResult") to list

If this is a bug, please fix this.

If this is a feature, please update the documentation and the changelog.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions