You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from haystack.constants import DEFAULT_ALIAS
|
|
|
|
|
|
class BaseRouter:
|
|
# Reserved for future extension.
|
|
pass
|
|
|
|
|
|
class DefaultRouter(BaseRouter):
|
|
def for_read(self, **hints):
|
|
return DEFAULT_ALIAS
|
|
|
|
def for_write(self, **hints):
|
|
return DEFAULT_ALIAS
|