3 ms·
There's a bunch of awesome new features in this release. The new `QuerySet.as_manager` method permits using the same code for both custom querysets and model ma
by rectangletangle 12y ago
There's a bunch of awesome new features in this release. The new `QuerySet.as_manager` method permits using the same code for both custom querysets and model managers. No more hideous code duplication. I don't know how this https://github.com/django/django/blob/stable/1.6.x/django/db/models/manager.py https://github.com/django/django/blob/stable/1.6.x/django/db..., ever meshed with Django's DRY philosophy. There's also the new `Prefetch` class, which allows for more sophisticated prefetch queries (more than just model.related.all()). Though the new migration framework is definitely the star of this release.