magic-removal: Fixed errors in many_to_one_null model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5bd6d2b949
commit
ee05e42a36
|
@ -58,12 +58,16 @@ Second
|
|||
>>> a3.save()
|
||||
>>> a3.id
|
||||
3
|
||||
>>> a3.reporter.id
|
||||
>>> print a3.reporter.id
|
||||
None
|
||||
>>> a3.reporter
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DoesNotExist
|
||||
|
||||
>>> a3 = Article.objects.get(pk=3)
|
||||
>>> print a3.reporter.id
|
||||
None
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DoesNotExist
|
||||
|
||||
# Accessing an article's 'reporter' attribute throws ReporterDoesNotExist
|
||||
# if the reporter is set to None.
|
||||
|
|
Loading…
Reference in New Issue