Opened 5 years ago

Last modified 5 years ago

#30391 closed Bug

.get ignores .using — at Initial Version

Reported by: DavionKalhen Owned by: nobody
Component: Database layer (models, ORM) Version: dev
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

When using multiple databases, when accessing the non-default with .using, a subsiquent call to .get will ignore the databases.

Eg:

comment = Comments.objects.using('specialcmts').get(pk=23)
#if pk=23 exists in 'default' db, comment will be that value, or it throws an error.

Change History (0)

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