Skip to content

Unable to combine with Extract function #29

@sevdog

Description

@sevdog

When using this field is not possible to direcly use the Django ORM function Extract (and similars).

Since this function checks field type before passing to database:

ValueError: Extract input expression must be DateField, DateTimeField, TimeField, or DurationField.

This does not allow the developer to use with ease the postgres DB function EXTRACT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions