Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-orm-2.0.5/django_orm/dispatch.py   django-orm(Download)
def ensure_default_manager(sender, **kwargs):
    from django_orm.cache.utils import get_cache_key_for_pk
    from django_orm.cache.invalidator import invalidate_object
    from django_orm.manager import FTSManager as Manager
    from django.db import models
    sender.add_to_class('_orm_meta', meta_orm_obj)
    if not getattr(sender, '_orm_manager', None):
        sender.add_to_class('_orm_manager', Manager())
 
    sender.add_to_class('_get_cache_key_for_pk',