Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2f213e18d5
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.419 kb
def patch_manager():
from django.db import models
from cachebot.managers import CacheBotManager
models.Manager = CacheBotManager
def patch_queryset():
from django.db.models import query
from cachebot.queryset import CachedQuerySet
query.QuerySet = CachedQuerySet
def patch_all(manager=True, queryset=True):
if manager:
patch_manager()
if queryset:
patch_queryset()
Jump to Line
Something went wrong with that request. Please try again.