Django

Code

Ticket #6601 (closed: duplicate)

Opened 10 months ago

Last modified 10 months ago

contenttypes documentation typos

Reported by: anonymous Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: contenttypes doc typo
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Typo 1

The following code snippet from http://www.djangoproject.com/documentation/contenttypes/#generic-relations will raise an ImportError:

>>> from django.contrib.models.auth import User
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named models.auth

Apparently, this is what is actually meant:

>>> from django.contrib.auth.models import User
>>>

Typo 2

Also, near the end of the page,

>>> b = Bookmark('http://www.djangoproject.com/')
>>> b.save()
..
IntegrityError: datatype mismatch
>>>

appears to be missing a kwarg:

>>> b = Bookmark(url='http://www.djangoproject.com/')
>>> b.save()
>>> 

}}}

Attachments

Change History

02/13/08 20:59:21 changed by Collin Grady <cgrady@the-magi.us>

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of #6600


Add/Change #6601 (contenttypes documentation typos)




Change Properties
Action