summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
2013-05-25Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation.Preston Holmes
SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
2013-05-26Fixed get_or_create...test_savepoint_rollback test for Python3Shai Berger
The test was always skipped on Python3 because string literals are unicode
2013-05-26Fix get_or_create test failure under OracleShai Berger
Test expected that when given invalid utf-8, the backend should raise a DatabaseError, but the Oracle backend raises a UnicodeDecodeError.
2013-05-25Fixed #19938 -- Consumed iterator only once in paginator's PageAndrew Jesaitis
Thanks Joshua Fialkoff for the report.
2013-05-25Fixed #20296 -- Allowed SafeData and EscapeData to be lazyBaptiste Mispelon
2013-05-25Fixed #11725 -- Made possible to create widget label tag without "for"Claude Paroz
Thanks Denis Martinez for the report and initial patch, and Sergey Kolosov for bringing the patch up to date.
2013-05-25Fixed #20099 -- Eased subclassing of BrokenLinkEmailsMiddlewareClaude Paroz
Thanks Ram Rachum for the report and the initial patch, and Simon Charette for the review.
2013-05-25Fixed #14825 -- LocaleMiddleware keeps languageVlastimil Zíma
* LocaleMiddleware stores language into session if it is not present there.
2013-05-24Fixed a regression in router initializationClaude Paroz
Regression was introduced in 6a6bb168b. Thanks Bas Peschier for the report.
2013-05-24Fixed #19607 - prefetch_related crashLuke Plant
Thanks to av@rdf.ru and flarno11@yahoo.de for the report.
2013-05-23Fixed #17648 -- Add `for_concrete_model` to `GenericForeignKey`.Gavin Wahl
Allows a `GenericForeignKey` to reference proxy models. The default for `for_concrete_model` is `True` to keep backwards compatibility. Also added the analog `for_concrete_model` kwarg to `generic_inlineformset_factory` to provide an API at the form level.
2013-05-23Removed noise from pre_syncdb signal testsDonald Stufft
Only make assertions that actually test the functionality of the change and not unrelated pieces.
2013-05-23Fixed #20474 -- Proxied and deprecated django.db.backendClaude Paroz
2013-05-23Fixed #19237 (again) - Made strip_tags consistent between Python versionsClaude Paroz
2013-05-23Made fix for #9321 less buggy and more effective.Ramiro Morales
Don't try to be smart about building a good-looking help string because it evaluates translations too early, simply use the same old strategy as before. Thanks Donald Stufft for the report. Also, actually fix the case reported by the OP by special-casing CheckboxSelectMultiple. Added tests. Refs #9321.
2013-05-23Fixed #11398 - Added a pre_syncdb signalDonald Stufft
2013-05-22Merge pull request #1198 from KrzysiekJ/http-patch-methodRussell Keith-Magee
Fixed #20478 – Added support for HTTP PATCH method in generic views.
2013-05-22Removed check for 0.15 version of gettext toolsClaude Paroz
gettext 0.15 has been released in July 2006.
2013-05-22Fixed #19237 -- Used HTML parser to strip tagsClaude Paroz
The regex method used until now for the strip_tags utility is fast, but subject to flaws and security issues. Consensus and good practice lead use to use a slower but safer method.
2013-05-22Fixed #20478 – Added support for HTTP PATCH method in generic views.Krzysztof Jurewicz
2013-05-22Fixed #20463 -- Made get_or_create more robust.Aymeric Augustin
When an exception other than IntegrityError was raised, get_or_create could fail and leave the database connection in an unusable state. Thanks UloPe for the report.
2013-05-22Merge pull request #246 from dekkers/ticket_18709Marc Tamlyn
Fixed #18709 -- Check if initial_value is a callable
2013-05-22Fixed #19895 -- Second iterator over invalid qs raises errorsAnssi Kääriäinen
The fix was already in the patch for #18702, so only test added for ticket #19895.
2013-05-22Fixed #18709 -- Check if initial_value is a callableJeroen Dekkers
In _get_changed_data, check if initial_value is a callable and call it if it is.
2013-05-21Fixed #18702 -- Removed chunked reads from QuerySet iterationAnssi Kääriäinen
2013-05-21Fixed #19326 -- Added first() and last() methods to QuerySetSelwin Ong
2013-05-21Fixed #6412 -- More details if a template file cannot be loadedMathijs de Bruin
Report more details about template files in loader postmortem.
2013-05-21Merge pull request #1194 from ambv/python26_is_funFlorian Apolloner
Fixed a Python 2.6 regression (GzipFile can't act as a context manager)
2013-05-21Fixed #17308 -- Enabled the use of short_description on properties in the admin.Wiktor Kolodziej
2013-05-21Fixed a Python 2.6 regression (GzipFile can't act as a context manager)Łukasz Langa
2013-05-21Fixed test failures from 09f865276554f35060ff939722ec4cefd578edf6.Florian Apolloner
2013-05-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
2013-05-21Merge pull request #1191 from ambv/content_is_bytesAymeric Augustin
Fixed #20472: response.content should be bytes on both Python 2 and 3
2013-05-21Fixed #20212 - __reduce__ should only be defined for Py3+.Daniel Lindsley
2013-05-21Fixed #20472: response.content should be bytes on both Python 2 and 3Łukasz Langa
2013-05-20Fixed #20445 -- Raised original exception after command errorJorge Bastida
2013-05-20Fixed #20403 -- Ignore forms marked for deletion when validating max_num.Ryan Kaskel
2013-05-20Fixed #20278 -- ensured .get() exceptions do not recurse infinitelyAnssi Kääriäinen
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.
2013-05-20Fixed #20378 -- regression in GenericRelation on abstract modelAnssi Kääriäinen
When a GenericRelation was defined on abstract model, queries on childs of the abstract model didn't work. The problem was in the way fields and in particular field.rel was copied from models to their children. The regression was likely caused by #19385. Thanks to Gavin Wahl for spotting the regression.
2013-05-20Fixed qs.values() regression when used in subqueryAnssi Kääriäinen
2013-05-20Merge pull request #1181 from aaugustin/better-api-to-disable-atomic-requestsMarc Tamlyn
Changed API to disable ATOMIC_REQUESTS per view.
2013-05-20Fixed #20437 - marked a test-runner test as expected-fail under certain ↵Carl Meyer
conditions.
2013-05-19Fixed #20449 - Corrected test sensitivity to current working dir.Tomasz Jaskowski
2013-05-19Lower the max length for a test field so that it works on MySQL.Alex Gaynor
2013-05-19Fixed fixtures testing failureAnssi Kääriäinen
The failure was caused by generating the same warning from two tests. The second time the same warning was raised it was swallowed by the "once" simplefilter of warnings.
2013-05-19Changed API to disable ATOMIC_REQUESTS per view.Aymeric Augustin
A decorator is easier to apply to CBVs. Backwards compatibility isn't an issue here, except for people running on a recent clone of master. Fixed a few minor problems in the transactions docs while I was there.
2013-05-19Fixed #16330 -- added --pks option in dumpdata commandPreston Holmes
Thanks to guettli for the initial ticket and patch, with additional work from mehmetakyuz and Kevin Brolly.
2013-05-19Fixed #15961 -- Modified ModelAdmin to allow for custom search methods.Bozidar Benko
This adds a get_search_results method that users can override to provide custom search strategies. Thanks to Daniele Procida for help with the docs.
2013-05-19Fixed test failure introduced in 1927bf7c91.Aymeric Augustin