Re: [Django] #11510: Import path for aggregates is incorrect

2009-07-20 Thread Django
#11510: Import path for aggregates is incorrect
+---
  Reporter:  admackin   | Owner:  nobody
Status:  closed | Milestone:
 Component:  Documentation  |   Version:  1.0   
Resolution:  invalid|  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by russellm):

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

Comment:

 The aggregates are imported into the db.models namespace on
 
[http://code.djangoproject.com/browser/django/trunk/django/db/models/__init__.py#L9
 line 9 of django/db/models/__init__.py].

-- 
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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #11510: Import path for aggregates is incorrect

2009-07-19 Thread Django
#11510: Import path for aggregates is incorrect
---+
 Reporter:  admackin   |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Documentation  | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 All the samples for aggregates at
 http://docs.djangoproject.com/en/dev/topics/db/aggregation/#topics-db-
 aggregation show the import path as
 {{{
 >>> from django.db.models import Avg, Max, Min, Count
 }}}

 This results in an `ImportError`. It should be changed to the correct
 path:
 {{{
 >>> from django.db.models.aggregates import Avg, Max, Min, Count
 }}}

-- 
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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---