create

Creates a BooleanFieldFunction with a predefined result. Enables a BooleanField to be used in contexts that expect a BooleanFieldFunction by setting the result of the function explicitly.

BooleanFieldFunction.evaluate returns the given result.

Return

A BooleanFieldFunction with a predefined result.

Since

300.0.0

Parameters

result

The predefined function result.