This is the first in a series of preview/development releases leading
up to the eventual release of Django 1.1, currently scheduled to take
place in April 2009. This release is primarily targeted at developers
who are interested in trying out new features and testing the Django
codebase to help identify and resolve bugs prior to the final 1.1
release.
As such, this release is *not* intended for production use, and any
such use is discouraged.
This is the first in a series of preview/development releases leading up to the
eventual release of Django 1.1, currently scheduled to take place in April 2009.
This release is primarily targeted at developers who are interested in trying
out new features and testing the Django codebase to help identify and resolve
bugs prior to the final 1.1 release.
As such, this release is *not* intended for production use, and any such use is
discouraged.
What's new in Django 1.1 alpha 1
================================
Two major enhancements have been added to Django's object-relational
mapper (ORM):
ORM improvements
----------------
Two major enhancements have been added to Django's object-relational mapper
(ORM):
Aggregate support
It's now possible to run various SQL aggregate queries from within
Django's ORM, and to either return the results of an aggregate
query directly or annotate the objects in a ``QuerySet`` with the
results of an aggregate query. This is accomplished by the new
``QuerySet`` methods ``aggregate()`` and ``annotate()``, and is
covered in detail in `the ORM aggregation documentation <topics-db-aggregation>`_.
~~~~~~~~~~~~~~~~~
.. currentmodule:: django.db.models
It's now possible to run SQL aggregate queries (i.e. ``COUNT()``, ``MAX()``, ``MIN()``, etc.) from within Django's ORM. You can choose to either return
the results of the aggregate directly, or else annotate the objects in a :class:`QuerySet` with the results of the aggregate query.
This feature is available as new :meth:`QuerySet.aggregate()`` and
:meth:`QuerySet.annotate()`` methods, and is covered in detail in :ref:`the ORM