mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
[1.2.X] Fixed #13759 - Multi-db docs have an example that isn't syntax highlighting
Thanks to Tim Hatch for report and patch. Backport of [13664] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6fbd860fa8
commit
dde1f13315
@ -238,7 +238,7 @@ master/slave relationship between the databases ``master``, ``slave1`` and
|
|||||||
return False
|
return False
|
||||||
return None
|
return None
|
||||||
|
|
||||||
class MasterSlaveRouter(object):
|
class MasterSlaveRouter(object):
|
||||||
"""A router that sets up a simple master/slave configuration"""
|
"""A router that sets up a simple master/slave configuration"""
|
||||||
|
|
||||||
def db_for_read(self, model, **hints):
|
def db_for_read(self, model, **hints):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user