Changeset 2259
- Timestamp:
- 02/03/06 17:47:36 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/tests/modeltests/many_to_one_null/models.py
r2210 r2259 59 59 >>> a3.id 60 60 3 61 >>> a3.reporter.id 62 >>> print a3.reporter.id 63 None 61 >>> a3.reporter 62 Traceback (most recent call last): 63 ... 64 DoesNotExist 65 64 66 >>> a3 = Article.objects.get(pk=3) 65 67 >>> print a3.reporter.id 66 None 68 Traceback (most recent call last): 69 ... 70 DoesNotExist 67 71 68 72 # Accessing an article's 'reporter' attribute throws ReporterDoesNotExist
