many:Blog
one:Entry
from blog.models import Entry,Blog
entry1 = Entry.create(name='test1')
entry2 = Entry.create(name='test2')
blog1 = Blog.objects.create(name='test_blog1',entry=entry1)
blog1 = Blog.objects.create(name='test_blog2',entry=entry2)
正向查询:blog1.entry 可返回Entry:test1 many to one
反向查询:entry1.blog_set.all() 可以查询到:Blog:test1_blog1 entry2.blog_set.all() test2_blog1
entry1 = Entry.create(name='test1')
entry1 = Entry.create(name='test1')