Opened 11 years ago
Closed 11 years ago
#21885 closed Uncategorized (invalid)
Incorrect import in Content Types docs
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#generic-relations
For the Generic Relation example in content types, you have this import
from django.contrib.contenttypes.fields import GenericForeignKey
when it should be,
from django.contrib.contenttypes.generic import GenericForeignKey
Note:
See TracTickets
for help on using tickets.
You are looking at the development version of the documentation (note "dev" in the URL) and this has changed in 10e3faf191d8f230dde8534d1c8fad8c8717816e.