Opened 18 years ago
Closed 18 years ago
#6601 closed (duplicate)
contenttypes documentation typos
| Reported by: | anonymous | Owned by: | nobody | 
|---|---|---|---|
| Component: | Documentation | Version: | dev | 
| Severity: | Keywords: | contenttypes doc typo | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
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() >>>
}}}
  Note:
 See   TracTickets
 for help on using tickets.
    
Duplicate of #6600