Re: [Django] #21182: Extra Column in Group By When Using date_trunc

2013-10-23 Thread Django
#21182: Extra Column in Group By When Using date_trunc
-+-
 Reporter:  anonymous|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.5
  (models, ORM)  |   Resolution:  needsinfo
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by shai):

 For anyone who looks at this later:

 The query produced includes `ORDER BY "finance_transaction"."date" DESC`,
 which hints that the user's Transaction model has a meta
 `ordering=["-date"]`; if this is the case, the date field is
 '''correctly''' added to the group-by, to allow this ordering. Ordering by
 month instead should solve the problem.

-- 
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/067.6ade563ff731db9a023c02672a5de663%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21182: Extra Column in Group By When Using date_trunc

2013-10-22 Thread Django
#21182: Extra Column in Group By When Using date_trunc
-+-
 Reporter:  anonymous|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.5
  (models, ORM)  |   Resolution:  needsinfo
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timo):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Closing as needs info in absence of a test to reproduce. Feel free to
 reopen if you can provide more details, thanks!

-- 
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/067.c59546571e977ed68dd0d8a2fc7fd0b4%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21182: Extra Column in Group By When Using date_trunc

2013-10-03 Thread Django
#21182: Extra Column in Group By When Using date_trunc
-+-
 Reporter:  anonymous|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.5
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timo):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 I'm skeptical of your use of `date_trunc_sql` -- this isn't a public API
 that's designed for general use as far as I know.

 Assuming there is a bug in Django though, it would be helpful if you could
 include a test for Django's test suite so we can more easily reproduce the
 issue.

-- 
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/067.46615bf8328179e2f6e4d144ed90f875%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.