Skip to content

Commit

Permalink
add a few more models that always read from primary
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Feb 10, 2025
1 parent f376993 commit 2d8baf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polling_stations/db_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def db_for_read(self, model, **hints):
# but we do want to prevent race conditions
# when reading a record we just wrote
if model._meta.label in (
"bug_reports.models.BugReport",
"feedback.models.Feedback",
"file_uploads.Upload",
"file_uploads.File",
):
Expand Down

0 comments on commit 2d8baf0

Please sign in to comment.