Django

Code

Ticket #6600 (closed: fixed)

Opened 7 months ago

Last modified 7 months ago

contenttypes documentation typos

Reported by: anonymous Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: contenttypes doc typo
Cc: Triage Stage: Ready for checkin
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

docs.contenttypes-typos.patch (0.9 kB) - added by anonymous on 02/13/08 20:53:57.

Change History

02/13/08 20:53:57 changed by anonymous

  • attachment docs.contenttypes-typos.patch added.

02/13/08 20:58:18 changed by anonymous

You may safely delete #6601, submitted in error (identical to #6600). Thanks.

02/13/08 21:06:20 changed by SmileyChris

  • stage changed from Unreviewed to Ready for checkin.

02/13/08 23:26:53 changed by russellm

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

(In [7111]) Fixed #6600 -- Corrected typos in contenttype documentation.


Add/Change #6600 (contenttypes documentation typos)




Change Properties
Action