1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

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:
Adrian Holovaty 2006-02-03 23:47:36 +00:00
parent 5bd6d2b949
commit ee05e42a36

View File

@ -58,12 +58,16 @@ Second
>>> a3.save() >>> a3.save()
>>> a3.id >>> a3.id
3 3
>>> a3.reporter.id >>> a3.reporter
>>> print a3.reporter.id Traceback (most recent call last):
None ...
DoesNotExist
>>> a3 = Article.objects.get(pk=3) >>> a3 = Article.objects.get(pk=3)
>>> print a3.reporter.id >>> print a3.reporter.id
None Traceback (most recent call last):
...
DoesNotExist
# Accessing an article's 'reporter' attribute throws ReporterDoesNotExist # Accessing an article's 'reporter' attribute throws ReporterDoesNotExist
# if the reporter is set to None. # if the reporter is set to None.