Changeset 2275
- Timestamp:
- 02/04/06 16:47:05 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/tests/modeltests/many_to_many/models.py
r2267 r2275 115 115 116 116 # Adding via the other end using keywords 117 >>> a5 = p1.article_set.add(headline='Oxygen-free diet works wonders')117 >>> p2.article_set.add(headline='Oxygen-free diet works wonders') 118 118 >>> p2.article_set.all().order_by('headline') 119 119 [NASA finds intelligent life on Earth, Oxygen-free diet works wonders] 120 >>> a5 = p2.article_set.all().order_by('headline')[1] 120 121 >>> a5.publications.all() 121 122 [Science News]
