Code

Opened 6 years ago

Closed 6 years ago

#6600 closed (fixed)

contenttypes documentation typos

Reported by: anonymous Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: contenttypes doc typo
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

docs.contenttypes-typos.patch (905 bytes) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by anonymous

comment:1 Changed 6 years ago by anonymous

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

comment:2 Changed 6 years ago by SmileyChris

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.