summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-05-31Fixed #18409 -- Made RegexField work with unicode characters.Julien Phalip
2012-05-31Fixed #18408 -- Isolated flatpages tests from existing sites.Jens Page
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
2012-05-31Fixed #18407 -- Made model field's to_python methods fully accept unicode.Claude Paroz
When generating error message in to_python, any unicode string containing non-ascii characters triggered a UnicodeEncodeError for most field types.
2012-05-31Fixed #14681 -- Do not set mode to None on file-like objects.Claude Paroz
gzip.GzipFile does not support files with mode set to None.
2012-05-29Merge pull request #94 from jphalip/tickets/18393-blocktrans-valueerrorJulien Phalip
Fixed #18393 -- Prevented blocktrans to crash when a variable name is badly formatted.
2012-05-28Removed unneeded smart_str in cache utils.Claude Paroz
2012-05-28Fixed #18393 -- Prevented blocktrans to crash when a variable name is badly ↵Julien Phalip
formatted.
2012-05-28Removed numbering of GEOS tests.Claude Paroz
2012-05-27Used CommandError in createcachetable command.Claude Paroz
Raising CommandError whenever a management command meets an error condition is the standard way to handle errors in commands.
2012-05-27Fixed #18387 -- Do not call sys.exit during call_command.Claude Paroz
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
2012-05-27Fixed #18135 -- Close connection used for db version checkingMichael Newman
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.
2012-05-27Fixed #18343 -- Cleaned up deferred model implementationAnssi Kääriäinen
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.
2012-05-26Removed unneeded sys import added in previous commitClaude Paroz
2012-05-26Fixed #5423 -- Made dumpdata output one row at a time.Claude Paroz
This should prevent storing all rows in memory when big sets of data are dumped. See ticket for heroic contributors.
2012-05-26Updated WMS URL in geoadmin test.Claude Paroz
2012-05-25Fixed #14886 -- Added wms_options dict to GeoModelAdmin.Claude Paroz
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.
2012-05-25Specified when open should use binary mode.Claude Paroz
Thanks Vinaj Sajip for the help of his django3 branch.
2012-05-25Fixed #17371 -- Made the test client more flexibleAymeric Augustin
The OPTIONS, PUT and DELETE methods no longer apply arbitrary data encoding (in the query string or in the request body).
2012-05-24Removed unneeded smart_str in generic views.Claude Paroz
2012-05-24Fixed qs.order_by() join promotion for already existing joinsAnssi Kääriäinen
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.
2012-05-24Stopped converting match dict keys to bytestrings when resolving URLs.Claude Paroz
Test suite is passing, but if any regression would be detected, we might replace smart_str by force_unicode.
2012-05-24Fixed #18177 -- Cached known related instances.Aymeric Augustin
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.
2012-05-24Fixed #18353 -- Inconsistency in date-based CBVs.Aymeric Augustin
2012-05-24Fixed #18367 -- Allowed LayerMapping to store strings in TextField.Claude Paroz
Thanks geoffhing@gmail.com for the report.
2012-05-24Modernized contrib.gis layermapping tests.Claude Paroz
In particular, make tests independent of each other.
2012-05-23Replaced types.NoneType occurrencesClaude Paroz
In Python 3, types.NoneType is no more available.
2012-05-22Fixed #18319 -- Added 'supports_sequence_reset' DB featureAnssi Kääriäinen
Added a new feature to allow 3rd party backends to skip tests which test sequence resetting. Thanks to manfre for report and patch.
2012-05-22Replaced 'next' testing by collections.Iterator testing.Claude Paroz
The new construct is also Python 3 compatible (where 'next' has been renamed to '__next__').
2012-05-22Fixed #18304 -- Optimized save() when update_can_self_select=FalseAnssi Kääriäinen
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.
2012-05-22Fixed #18113 -- Corrected get_template_names docstrings.Claude Paroz
Thanks Keryn Knight for the report.
2012-05-20Regenerated the minified versions of the admin actions and admin inlines ↵Jannis Leidel
JavaScript files forgotten in 04785d2 and f92c7c5 (and previous).
2012-05-20Fixed #18354 -- Performance issue in CBV.Aymeric Augustin
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.
2012-05-20Imported reduce from functools for forward compatibility.Claude Paroz
In Python 3, reduce has to be imported from functools.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-19Fixed #18325 -- Wrapped self.stdout/stderr in OutputWrapper classClaude Paroz
2012-05-19Fixed test failures after commit 1a66f53. Refs #18340Claude Paroz
2012-05-19Fixed #18340 -- Fixed formtools form_hmac with Unicode inputClaude Paroz
Using cPickle, two apparently identical Unicode strings could generate different pickled results depending on previous operations on those strings.
2012-05-18Merge pull request #24 from marcneuwirth/masterAdrian Holovaty
Removed 'return false' in favor of preventDefault in admin JS.
2012-05-18Merge pull request #70 from tswicegood/fix-js-scopeAdrian Holovaty
Cleaned up various JavaScript in admin JS.
2012-05-18Cleaned up WSGIRequestHandler get_environ to be Python 3 compatibleClaude Paroz
headers.type/typeheader attributes are gone in Python 3. Thanks Vinay Sajip for the inspiration of his Python 3 branch.
2012-05-18Added more relative imports in contrib.gis.Claude Paroz
2012-05-18Got rid of old __cmp__methods replaced by rich comparison.Claude Paroz
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.
2012-05-18Fixed #18334 -- Fixed detection of supports_stddev backend feature.Claude Paroz
Thanks to Michael Manfre for the report and Anssi Kääriäinen for the review.
2012-05-17Fixed #6916 -- Wrong spelling of Spanish province.Aymeric Augustin
2012-05-17Fixed #18323 -- Refactored date arithmeticAymeric Augustin
in date based generic views, in order to deal properly with both DateFields and DateTimeFields.
2012-05-17Fixed #9893 -- Validated the length of file namesAymeric Augustin
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.
2012-05-17Fixed #17449 -- Added OPTIONS to generic views.Aymeric Augustin
Thanks estebistec for the report and patch.
2012-05-17Fixed #17535 -- Optimized list generic views.Aymeric Augustin
When allow_empty is False, prevented the view from loading the entire queryset in memory when pagination is enabled.
2012-05-16Hidden __pycache__ dirs for FilePathField. Refs #17393.Claude Paroz
This will be tested as soon as tests will run under Python 3. Patch taken from Vinay Sajip's Python 3 branch.
2012-05-16Swap out to === for the true comparison to avoid possible coercion issuesTravis Swicegood