Django

Code

Changeset 2259

Show
Ignore:
Timestamp:
02/03/06 17:47:36 (3 years ago)
Author:
adrian
Message:

magic-removal: Fixed errors in many_to_one_null model unit tests

Files:

Legend:

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

    r2210 r2259  
    5959>>> a3.id 
    60603 
    61 >>> a3.reporter.id 
    62 >>> print a3.reporter.id 
    63 None 
     61>>> a3.reporter 
     62Traceback (most recent call last): 
     63    ... 
     64DoesNotExist 
     65 
    6466>>> a3 = Article.objects.get(pk=3) 
    6567>>> print a3.reporter.id 
    66 None 
     68Traceback (most recent call last): 
     69    ... 
     70DoesNotExist 
    6771 
    6872# Accessing an article's 'reporter' attribute throws ReporterDoesNotExist