~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/db/models/aggregates.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        """
44
44
        klass = getattr(query.aggregates_module, self.name)
45
45
        aggregate = klass(col, source=source, is_summary=is_summary, **self.extra)
46
 
        # Validate that the backend has a fully supported, correct
47
 
        # implementation of this aggregate
48
 
        query.connection.ops.check_aggregate_support(aggregate)
49
46
        query.aggregates[alias] = aggregate
50
47
 
51
48
class Avg(Aggregate):