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

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

src/d/j/django-cache-magic-0.1.0/test_project/sample_app/models.py   django-cache-magic(Download)
from django.db import models
 
from cachemagic import RelatedCacheController, CachingForeignKey
 
 
class Person(models.Model):
    name = models.CharField(max_length=64)
 
    cache = RelatedCacheController()
    rank = models.IntegerField()
 
    cache = RelatedCacheController(backend='other')
 
    class Meta: