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-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 Book(models.Model):
    title = models.CharField(max_length=64)
    author = CachingForeignKey(Person)
    editors = models.ManyToManyField("Person", related_name='edited')
    rank = models.IntegerField()