Opened 4 years ago

Closed 4 years ago

#31929 closed Bug (invalid)

Cannot import Replace() from the django.db.models.functions.

Reported by: robert gautier Owned by: nobody
Component: Database layer (models, ORM) Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The specific functions that I can not import in are 'Replace' and all others from the text.py file.

I'm using the following import syntax: from django.db.models.functions import Cast, Replace . However, I can import in 'Cast' without any issues.

Please advise if I am doing something wrong as I would like to use the function for a program.

Thanks

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Component: PackagingDatabase layer (models, ORM)
Resolution: invalid
Status: newclosed
Summary: Can not import in 'Replace' function from the django.db.models.functions libraryCannot import Replace() from the django.db.models.functions.

It works for me. I don't see any issue in Django itself. Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top