Re: [Django] #21995: GenericForeignKey import wrong

2014-02-10 Thread Django
#21995: GenericForeignKey import wrong
-+--
 Reporter:  helberg.andre@…  |Owner:  nobody
 Type:  Uncategorized|   Status:  closed
Component:  Documentation|  Version:  1.6
 Severity:  Normal   |   Resolution:  invalid
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by mjtamlyn):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

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

 
https://docs.djangoproject.com/en/1.6/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/081.f952213273d795470759a25419cda86f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #21995: GenericForeignKey import wrong

2014-02-10 Thread Django
#21995: GenericForeignKey import wrong
-+
 Reporter:  helberg.andre@…  |  Owner:  nobody
 Type:  Uncategorized| Status:  new
Component:  Documentation|Version:  1.6
 Severity:  Normal   |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0|  UI/UX:  0
-+
 On the page:
 
https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey

 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:
 {{{
 generic.GenericForeignKey...
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.745c363a45472dadf5b5495e40f7fd13%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.