#11305: Support for "Conditional Aggregates" -----------------------------------------+--------------------------------- Reporter: bendavis78 | Owner: Type: New feature | Status: new Milestone: | Component: ORM aggregation Version: 1.0 | Severity: Normal Resolution: | Keywords: Triage Stage: Someday/Maybe | Has patch: 1 Needs documentation: 1 | Needs tests: 1 Patch needs improvement: 1 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+---------------------------------
Comment (by akaariai): Fixed one error in sql/query.py: if add_aggregate's call to add_q would add the q to self.having, it would get lost. Fixed this by disallowing touching of self.having in add_aggregate. Also changed Exception to FieldError in sql/query.py add_aggregate. -- Ticket URL: <https://code.djangoproject.com/ticket/11305#comment:8> 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 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.