mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.0.X] Fixed #10118 -- Clarified the error message raised when accessing a subclass model that doesn't exist. Thanks to peterbraden@peterbraden.co.uk for the suggestion.
Merge of r9859 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8519146963
commit
1bd70b4e22
@ -927,7 +927,7 @@ of the model name::
|
|||||||
|
|
||||||
However, if ``p`` in the above example was *not* a ``Restaurant`` (it had been
|
However, if ``p`` in the above example was *not* a ``Restaurant`` (it had been
|
||||||
created directly as a ``Place`` object or was the parent of some other class),
|
created directly as a ``Place`` object or was the parent of some other class),
|
||||||
referring to ``p.restaurant`` would give an error.
|
referring to ``p.restaurant`` would raise a Restaurant.DoesNotExist exception.
|
||||||
|
|
||||||
``Meta`` and multi-table inheritance
|
``Meta`` and multi-table inheritance
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user