Django

Code

Changeset 2275

Show
Ignore:
Timestamp:
02/04/06 16:47:05 (3 years ago)
Author:
lukeplant
Message:

magic-removal: Fixed some incorrect tests in many_to_many

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/tests/modeltests/many_to_many/models.py

    r2267 r2275  
    115115 
    116116# 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') 
    118118>>> p2.article_set.all().order_by('headline') 
    119119[NASA finds intelligent life on Earth, Oxygen-free diet works wonders] 
     120>>> a5 = p2.article_set.all().order_by('headline')[1] 
    120121>>> a5.publications.all() 
    121122[Science News]