Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13428 -- Corrected the allow_relation behavior of and example …

…router. Thanks to jcd for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6b1a2a8e44071a2b7415b3016227d12d382f17f2 1 parent e34ca2b
Russell Keith-Magee authored May 08, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/db/multi-db.txt
2  docs/topics/db/multi-db.txt
@@ -256,7 +256,7 @@ master/slave relationship between the databases ``master``, ``slave1`` and
256 256
         def allow_relation(self, obj1, obj2, **hints):
257 257
             "Allow any relation between two objects in the db pool"
258 258
             db_list = ('master','slave1','slave2')
259  
-            if obj1 in db_list and obj2 in db_list:
  259
+            if obj1._state.db in db_list and obj2._state.db in db_list:
260 260
                 return True
261 261
             return None
262 262
 

0 notes on commit 6b1a2a8

Please sign in to comment.
Something went wrong with that request. Please try again.