(Fixed description formatting. Please use preview.)
The text in question is here: http://docs.djangoproject.com/en/dev/topics/db/queries/#saving-foreignkey-and-manytomanyfield-fields
The Entry/entry difference is not an error in the documentation. The lowercase-e entry
is assumed to be an instance of the Entry
class. The previous section on saving changes to an object makes that clear by noting what b5
is before using it in the example code, it would probably make sense to avoid confusion and note something similar before entry
is used.
The page does show an import for Blog, but not the other models used. In reading through the text, though, it's clear that the Blog import is done to show an example of how to do it; the remaining text assumes corresponding imports have been done for the other models used. It might not hurt to point that out in the text.