More response to CR

This commit is contained in:
Julia Hansbrough
2013-12-31 15:15:44 +00:00
parent 99e8596fea
commit 95affba643
12 changed files with 259 additions and 338 deletions

View File

@@ -0,0 +1,4 @@
from django.conf import settings
def use_read_replica_if_available(queryset):
return queryset.using("read_replica") if "read_replica" in settings.DATABASES else queryset