#23413: django.contrib.contenttypes.fields has been remove
-------------------------------+--------------------------
Reporter: neoblackcap | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords: contenttypes
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------
In the document '''The contenttypes framework''', section '''Generic
relations'''
the example show
{{{
from django.db import models
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
}}}
However, {{{ GenericForeignKey }}} only can be import from
django.contrib.contenttypes.generic
--
Ticket URL: <https://code.djangoproject.com/ticket/23413>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.8b04d1386adbd6d60dbbe8bb4d30354c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.