Commit b1d487e0 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #10118 -- Clarified the error message raised when accessing a subclass...

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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b77bf529
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -927,7 +927,7 @@ of the model name::

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),
referring to ``p.restaurant`` would give an error.
referring to ``p.restaurant`` would raise a Restaurant.DoesNotExist exception.

``Meta`` and multi-table inheritance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~