Skip to content

Django.db.models.functions missing almost all re-imports #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
K0Te opened this issue Jan 26, 2019 · 1 comment
Closed

Django.db.models.functions missing almost all re-imports #7

K0Te opened this issue Jan 26, 2019 · 1 comment

Comments

@K0Te
Copy link
Contributor

K0Te commented Jan 26, 2019

Initial error: "error: Module 'django.db.models.functions' has no attribute 'Coalesce'" has only: from django.db.models.functions has only one line: from .text import Lower as Lower`, while django has:

from .comparison import Cast, Coalesce, Greatest, Least, NullIf
from .datetime import (
    Extract, ExtractDay, ExtractHour, ExtractIsoYear, ExtractMinute,
    ExtractMonth, ExtractQuarter, ExtractSecond, ExtractWeek, ExtractWeekDay,
    ExtractYear, Now, Trunc, TruncDate, TruncDay, TruncHour, TruncMinute,
    TruncMonth, TruncQuarter, TruncSecond, TruncTime, TruncWeek, TruncYear,
)
from .math import (
    Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Cot, Degrees, Exp, Floor, Ln, Log,
    Mod, Pi, Power, Radians, Round, Sin, Sqrt, Tan,
)
from .text import (
    Chr, Concat, ConcatPair, Left, Length, Lower, LPad, LTrim, Ord, Repeat,
    Replace, Reverse, Right, RPad, RTrim, StrIndex, Substr, Trim, Upper,
)
from .window import (
    CumeDist, DenseRank, FirstValue, Lag, LastValue, Lead, NthValue, Ntile,
    PercentRank, Rank, RowNumber,
)
@K0Te K0Te changed the title Django.db.models.functions missing almost re-imports Django.db.models.functions missing almost all re-imports Jan 26, 2019
@mkurnikov
Copy link
Member

@TonyRippy TonyRippy mentioned this issue Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants