Changeset 7ecc071 in observatorio
- Timestamp:
- Jul 25, 2014, 1:44:48 PM (10 years ago)
- Branches:
- master
- Children:
- 33bd7c7
- Parents:
- 017cbb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
procesos/apps/geocadena/routers.py
rf0a6b92 r7ecc071 1 1 # -*- coding: utf-8 -*- 2 2 from django.conf import settings 3 3 4 4 5 class GeocadenaRouter(object): … … 20 21 21 22 def allow_relation(self, obj1, obj2, **hints): 22 if obj1._state.db in self.list_database and obj2._state.db in self.list_database:23 #if obj1._meta.app_label == 'geocadena' or obj2._meta.app_label == 'geocadena':23 #if obj1._state.db in self.list_database and obj2._state.db in self.list_database: 24 if obj1._meta.app_label == 'geocadena' or obj2._meta.app_label == 'geocadena': 24 25 return True 25 26 return None
Note: See TracChangeset
for help on using the changeset viewer.