Files
edx-platform/common/djangoapps/util/query.py
Julia Hansbrough 95affba643 More response to CR
2014-01-06 15:53:28 +00:00

4 lines
174 B
Python

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