Opened 9 years ago

Closed 9 years ago

#21995 closed Uncategorized (invalid)

GenericForeignKey import wrong

Reported by: helberg.andre@… 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


On the page:

Under Generic relations it says to use

from django.contrib.contenttypes.fields import GenericForeignKey

There is no "fields" in contenttypes, grepping through the source revealed it is:

from django.contrib.contenttypes import generic

and then it should read:


Change History (1)

comment:1 Changed 9 years ago by Marc Tamlyn

Resolution: invalid
Status: newclosed

This has changed in Django 1.7. Please make sure you are reading the docs for the correct version.

Note: See TracTickets for help on using tickets.
Back to Top