| Age | Commit message (Collapse) | Author |
|
|
|
Resolves Flatpages test issues by:
- Creating an example_site fixture
- Overriding project SITE_ID setting to 1
- Normalizing the use of the hardcoded (1) site_id to settings.SITE_ID
|
|
When generating error message in to_python, any unicode string
containing non-ascii characters triggered a UnicodeEncodeError for
most field types.
|
|
gzip.GzipFile does not support files with mode set to None.
|
|
Fixed #18393 -- Prevented blocktrans to crash when a variable name is badly formatted.
|
|
|
|
formatted.
|
|
|
|
Raising CommandError whenever a management command meets an error
condition is the standard way to handle errors in commands.
|
|
Moved sys.exit(1) so as failing management commands reach it
only when running from command line.
|
|
On MySQL when checking the server version, a new connection could be
created but never closed. This could result in open connections on
server startup.
|
|
Generic cleanup and dead code removal in deferred model field loading
and model.__reduce__().
Also fixed an issue where if an inherited model with a parent field
chain parent_ptr_id -> id would be deferred loaded, then accessing
the id field caused caused a database query, even if the id field's
value is already loaded in the parent_ptr_id field.
|
|
|
|
This should prevent storing all rows in memory when big sets of
data are dumped.
See ticket for heroic contributors.
|
|
|
|
It is now possible to set WMS options by overriding wms_options
in a subclass of GeoModelAdmin.
Thanks slinkp for the report and the initial patch.
|
|
Thanks Vinaj Sajip for the help of his django3 branch.
|
|
The OPTIONS, PUT and DELETE methods no longer apply arbitrary
data encoding (in the query string or in the request body).
|
|
|
|
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.
|
|
Test suite is passing, but if any regression would be detected,
we might replace smart_str by force_unicode.
|
|
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.
|
|
|
|
Thanks geoffhing@gmail.com for the report.
|
|
In particular, make tests independent of each other.
|
|
In Python 3, types.NoneType is no more available.
|
|
Added a new feature to allow 3rd party backends to skip tests which
test sequence resetting.
Thanks to manfre for report and patch.
|
|
The new construct is also Python 3 compatible (where 'next' has
been renamed to '__next__').
|
|
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.
|
|
Thanks Keryn Knight for the report.
|
|
JavaScript files forgotten in 04785d2 and f92c7c5 (and previous).
|
|
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.
|
|
In Python 3, reduce has to be imported from functools.
|
|
This is a preparation for unicode literals general usage in
Django (Python 3 compatibility).
|
|
|
|
|
|
Using cPickle, two apparently identical Unicode strings could
generate different pickled results depending on previous operations
on those strings.
|
|
Removed 'return false' in favor of preventDefault in admin JS.
|
|
Cleaned up various JavaScript in admin JS.
|
|
headers.type/typeheader attributes are gone in Python 3. Thanks
Vinay Sajip for the inspiration of his Python 3 branch.
|
|
|
|
The __cmp__ methods are unsupported in Python 3.
_doctest.py has been left untouched because it is likely it will
not be migrated to Python 3.
|
|
Thanks to Michael Manfre for the report and Anssi Kääriäinen for the
review.
|
|
|
|
in date based generic views, in order to deal properly with both
DateFields and DateTimeFields.
|
|
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.
|
|
This will be tested as soon as tests will run under Python 3. Patch
taken from Vinay Sajip's Python 3 branch.
|
|
|