Did I find the right examples for you? yes no

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

src/n/e/neo4django-HEAD/neo4django/tests/model_tests.py   neo4django(Download)
    # try related models
 
    from .models import IndexedMouse, RelatedCat, LazyCat
    jerry = IndexedMouse.objects.create(name='Jerry')
    tom = RelatedCat(name='Jerry')
    # try a model with a lazy relation
 
    garfield = LazyCat(name='Garfield')
    garfield.chases.add(jerry)
 

src/n/e/neo4django-0.1.8/neo4django/tests/model_tests.py   neo4django(Download)
    # try related models
 
    from .models import IndexedMouse, RelatedCat, LazyCat
    jerry = IndexedMouse.objects.create(name='Jerry')
    tom = RelatedCat(name='Jerry')
    # try a model with a lazy relation
 
    garfield = LazyCat(name='Garfield')
    garfield.chases.add(jerry)