| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
The old names were downright confusing. Some seemed to mean the opposite
of what the class actually did.
The new names follow a consistent nomenclature:
(Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor.
I mentioned combinations that do not exist in the docstring in order to
help people who would search for them in the code base.
|
| |
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
| |
being overwritten.
|
|
|
|
|
|
|
| |
UUIDField primary keys
This resolves a problem on databases besides PostgreSQL when using
prefetch_related with a source model that uses a UUID primary key.
|
| |
|
| |
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
Django test suite.
|
| |
|
|
|
|
|
|
| |
3282.
Thanks Collin Anderson for the review.
|
|
|
|
| |
There's always a better word.
|
|
|
|
|
|
|
| |
This allows these tests to run on databases that reject duplicate NULL
values in unique fields e.g. SQL Server.
Forward port of 4fb50a9a from stable/1.7.x.
|
|
|
|
|
|
| |
lookups can refer to former lookups.
Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
|
|
|
|
|
|
|
|
|
| |
Regression from f51c1f59 when using select_related then prefetch_related
on the reverse side of an O2O:
Author.objects.select_related('bio').prefetch_related('bio__books')
Thanks Aymeric Augustin for the report and tests. Refs #17001.
|
| |
|
|
|
|
| |
Thanks Claude Paroz for the report.
|
|
|
|
|
|
| |
query for reverse FK.
Regression introduced by commit 9777442. Refs #21410.
|
|
|
|
|
|
|
|
|
|
|
| |
reverse lookups
GenericRelation now supports an optional related_query_name argument.
Setting related_query_name adds a relation from the related object back to
the content type for filtering, ordering and other query operations.
Thanks to Loic Bistuer for spotting a couple of important issues in
his review.
|
|
|
|
|
|
|
|
|
|
|
| |
relations
The original patch for custom prefetches didn't allow usage of custom
queryset for single valued relations (along ForeignKey or OneToOneKey).
Allowing these enables calling performance oriented queryset methods like
select_related or defer/only.
Thanks @akaariai and @timgraham for the reviews. Refs #17001.
|
|
|
|
|
|
|
| |
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
related_name='+'
Regression introduced by commit 9777442.
Thanks to trac username troygrosfield for the report and test case.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch introduces the Prefetch object which allows customizing prefetch
operations.
This enables things like filtering prefetched relations, calling select_related
from a prefetched relation, or prefetching the same relation multiple times
with different querysets.
When a Prefetch instance specifies a to_attr argument, the result is stored
in a list rather than a QuerySet. This has the fortunate consequence of being
significantly faster. The preformance improvement is due to the fact that we
save the costly creation of a QuerySet instance.
Thanks @akaariai for the original patch and @bmispelon and @timgraham
for the reviews.
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
|
|
|
| |
Issue was fixed by removal of chunked reads from
QuerySet iteration in 70679243d1786e03557c28929f9762a119e3ac14.
Thanks Simeon Visser for the patch.
|
|
|
|
| |
Thanks to av@rdf.ru and flarno11@yahoo.de for the report.
|
|
|
|
| |
the methods that return a QuerySet.
|
|
|