Repository navigation
Preserve database alias and hints in device managers - #826
Merged
JaeHyuckSa merged 2 commits intoNov 9, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #826 +/- ##
=======================================
Coverage 74.65% 74.65%
=======================================
Files 32 32
Lines 1365 1365
Branches 226 226
=======================================
Hits 1019 1019
Misses 300 300
Partials 46 46 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
JaeHyuckSa
reviewed
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #824.
Pass
using=self._dbandhints=self._hintswhen constructing querysets in the GCM, APNS, WNS and WebPush device managers. This preserves database selection throughdb_manager()while keeping the specialized queryset classes and Django read/write routing intact.Add regression coverage using two separate SQLite databases for creation and reads, default and explicit aliases,
.using(), database routers, routing hints and instance-based fallback. Notification delivery code and migrations are unchanged.Validation
Verified locally on Django 4.2.30, 5.2.19 and 6.1.3:
AI assistance
OpenAI Codex assisted with investigation, implementation and regression tests. The validation results above were obtained by running the tests locally.