| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
timeline.
|
|
|
|
|
| |
"Area man/woman" is confusing to people not familiar with the
conventions of American journalism (like me).
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
| |
|
|
|
|
| |
MySQLdb
|
|
|
|
|
|
|
|
| |
Field.rel is now deprecated. Rel objects have now also remote_field
attribute. This means that self == self.remote_field.remote_field.
In addition, made the Rel objects a bit more like Field objects. Still,
marked ManyToManyFields as null=True.
|
|
|
|
|
|
|
| |
null fk
Thanks Johannes Lerch for the report, Tim Graham for the test case,
and Simon Charette for the review.
|
| |
|
|
|
|
|
|
|
|
| |
limited number of rows."
This reverts commit da79ccca1d34f427952cce4555e598a700adb8de.
This optimized the unsuccessful case at the expense of the successful one.
|
|
|
|
|
|
| |
ValuesListQuerySet().
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
|
| |
|
|
|
|
|
|
|
| |
retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
|
|
| |
Field.related.
|
|
|
|
|
| |
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham
for reviews.
|
| |
|
|
|
|
|
|
| |
Made _do_update behave more strictly according to its docs,
including a corner case when specific concurent updates are
executed and select_on_save is set.
|
|
|
|
| |
Django test suite.
|
| |
|
|
|
|
|
|
| |
3282.
Thanks Collin Anderson for the review.
|
|
|
|
|
|
| |
packages.
This is a reliqua from the early days of the modeltests/regressiontests era.
|
| |
|
| |
|
| |
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
Thanks Piotr Kasprzyk for help with the patch.
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
|
|
|
|
|
|
|
|
|
|
| |
The __eq__ method now considers two instances without primary key value
equal only when they have same id(). The __hash__ method raises
TypeError for no primary key case.
Fixed #18864, fixed #18250
Thanks to Tim Graham for docs review.
|
|
|
|
| |
Fixed #11892, fixed #16458, fixed #14492.
|
|
|
|
| |
Manager._insert() to the QuerySet class.
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
|
|
|
|
|
|
|
| |
Additionally this patch solves the orthogonal problem that specialized
`QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
type. This wasn't an issue until now because we didn't officially support
custom `QuerySet` but it became necessary with the introduction of this new
feature.
Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
for the reviews.
|
|
|
|
|
|
| |
number of rows.
Thanks Patryk Zawadzki.
|
|
|
|
| |
Fixed #20483.
|
|
|
|
| |
Gives much nicer errors when it fails.
|
|
|
|
|
|
|
|
| |
infinitely
A regression caused by d5b93d3281fe93cbef5de84a52 made .get() error
reporting recurse infinitely on certain rare conditions. Fixed this by
not trying to print the given lookup kwargs.
|
|
|
|
|
|
|
|
| |
invalid queryset raise an exception too"
This reverts commit 2cd0edaa477b327024e4007c8eaf46646dcd0f21.
This commit was the cause of a memory leak. See ticket for more details.
Thanks Anssi Kääriäinen for identifying the source of the bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Model.save() will use UPDATE - if not updated - INSERT instead of
SELECT - if found UPDATE else INSERT. This should save a query when
updating, but will cost a little when inserting model with PK set.
Also fixed #17341 -- made sure .save() commits transactions only after
the whole model has been saved. This wasn't the case in model
inheritance situations.
The save_base implementation was refactored into multiple methods.
A typical chain for inherited save is:
save_base()
_save_parents(self)
for each parent:
_save_parents(parent)
_save_table(parent)
_save_table(self)
|
|
|