| Age | Commit message (Collapse) | Author |
|
|
|
When order_by causes new joins to be added to the query, the joins must
be LEFT OUTER joins for nullable relations, otherwise the order_by
could cause the results to be altered. This commit fixes the logic to
only promote new joins, previously all joins in the order_by lookup
path were promoted.
Thanks to Bruno Desthuilliers for spotting this corner case.
|
|
This was recently fixed for one-to-one relations; this patch adds
support for foreign keys. Thanks kaiser.yann for the report and
the initial version of the patch.
|
|
|
|
Added a new feature to allow 3rd party backends to skip tests which
test sequence resetting.
Thanks to manfre for report and patch.
|
|
Thanks to manfre for report and patch.
|
|
A test in model_fields used LEN() in raw SQL. This function is not
available on some 3rd party backends. I removed this function and
ensured that the test works correctly (breaks pre e9bbdb39de) with
the change.
|
|
Databases with update_can_self_select = False (MySQL for example)
generated non-necessary queries when saving a multitable inherited
model, and when the save resulted in update.
|
|
Prevented repeating a query twice when the model isn't ordered by
-date_field (in Meta), allow_empty is False and pagination isn't
enabled.
|
|
This is a preparation for unicode literals general usage in
Django (Python 3 compatibility).
|
|
|
|
|
|
Thanks to Michael Manfre for the report and Anssi Kääriäinen for the
review.
|
|
|
|
after the full file name is generated by the storage class.
Thanks Refefer for the report, carsongee for the patch, and
everyone else involved in the discussion.
|
|
Thanks estebistec for the report and patch.
|
|
When allow_empty is False, prevented the view from loading
the entire queryset in memory when pagination is enabled.
|
|
Ending chars might be different depending on git crlf setting.
Thanks Michael Manfre for the report and the patch.
|
|
able to customize the way the hashed name of a file is created. Thanks to mkai for the initial patch.
|
|
of per-week date-based generic views. Thanks ee_lars for the report.
|
|
The new names are Python 3 compatible.
|
|
|
|
MySQL generates an extra query in inheritance cases when doing an update.
This results in a test failure when checking for number of queries in
update_only_fields tests. Added a skip temporarily to avoid this test
failure. Refs #18304.
|
|
Added the ability to update only part of the model's fields in
model.save() by introducing a new kwarg "update_fields". Thanks
to all the numerous reviewers and commenters in the ticket
|
|
Thanks shelldweller.
|
|
This new syntax for next() has been introduced in Python 2.6 and is
compatible with Python 3.
|
|
Fixed #18248 -- proxy models were added to included_inherited_models
in sql.query.Query. The variable is meant to be used for multitable
inheritance only. This mistake caused problems in situations where
proxy model's query was reused.
|
|
Fixed #17851 -- Added __lt__ and @total_ordering to models.Field,
made sure these work correctly on other objects than Field, too.
|
|
Also replaced StringIO.StringIO by BytesIO in some other appropriate
places. StringIO is not available in Python 3.
|
|
Ignoring __pycache__ directories fixes #17393 and prepare testing
with Python 3.
|
|
|
|
Thanks to Florian Apolloner for suggesting the patch.
|
|
|
|
|
|
|
|
|
|
Thanks Ramiro for the patch.
|
|
Ticket 18163 - use faster password hasher in tests.
|
|
|
|
Converted aware datetimes to the default time zone before using them
in the context of a DateField.
|
|
Fixed #18163
|
|
|
|
|
|
Introduced a distinct implementation depending on the type of the
date field (DateField or DateTimeField), and applied appropriate
conversions is the latter case, when time zone support is enabled.
|
|
|
|
Fixed #18175 -- Calling SortedDict.__copy__() resulted in changes to
the original dictionary. The reason was likely related to subclassing
dict.
Thanks to linovia for report and patch.
|
|
Fixed #15933, #18082 -- the get_indexes() method introspection was
done inconsitently depending on the backend. For example SQLite
included all the columns in the table in the returned dictionary,
while MySQL introspected also multicolumn indexes.
All backends return now consistenly only single-column indexes.
Thanks to andi for the MySQL report, and ikelly for comments on
Oracle's get_indexes() changes.
|
|
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
|
|
And started the deprecation path for django.utils.simplejson.
Thanks Alex Ogier, Clueless, and other contributors for their
work on the patch.
|
|
Made a test checking ORM-generated query string case-insensitive.
|