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

Ticket 18657: Fix inconsistent DB names in router example. #363

Merged
merged 3 commits into from Sep 8, 2012

Conversation

Projects
None yet
2 participants
@ubernostrum
Member

ubernostrum commented Sep 8, 2012

This rewrites the entire example to use the same DB names throughout,
and also is hopefully a bit more sensibly described. Additionally, the
missing import of the random module for choosing a read slave is
included in the example now.

Ticket 18657: Fix inconsistent DB names in router example.
This rewrites the entire example to use the same DB names throughout,
and also is hopefully a bit more sensibly described. Additionally, the
missing import of the random module for choosing a read slave is
included in the example now.
@mjtamlyn

View changes

Show outdated Hide outdated docs/topics/db/multi-db.txt
return True
return None
def allow_syncdb(self, db, model):
"Explicitly put all models on all databases."
"""
All non-auth models end up in this pool.

This comment has been minimized.

@mjtamlyn

mjtamlyn Sep 8, 2012

Member

Is this method necessary if it's always returning True?

@mjtamlyn

mjtamlyn Sep 8, 2012

Member

Is this method necessary if it's always returning True?

ubernostrum added a commit that referenced this pull request Sep 8, 2012

Merge pull request #363 from ubernostrum/multidb-examples-18657
Ticket 18657: Fix inconsistent DB names in router example.

@ubernostrum ubernostrum merged commit c26dd4f into django:master Sep 8, 2012

nanuxbe pushed a commit to nanuxbe/django that referenced this pull request Jul 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment