summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-03-04Merge pull request #2396 from loic/ticket21893Andrew Godwin
Fixed #21893 -- ModelState didn't account for MTI parents inherited from abstract models.
2014-03-05Fixed #21893 -- ModelState didn't account for MTI parents inherited from ↵Loic Bistuer
abstract models.
2014-03-05Added tests for MTI in RunPython.Loic Bistuer
2014-03-04Fixed #22085 -- Added a feature for setting non-expiring keys as the default.zedr
This feature allows the default `TIMEOUT` Cache argument to be set to `None`, so that cache instances can set a non-expiring key as the default, instead of using the default value of 5 minutes. Previously, this was possible only by passing `None` as an argument to the set() method of objects of type `BaseCache` (and subtypes).
2014-03-04Fixed spelling in model_forms test class namesChris Wilson
2014-03-03Fixed #16727 -- Added protocol-relative URL support to ↵Thomas Sorrel
contenttypes.views.shortcut.
2014-03-03Allowed custom querysets when prefetching single valued relationsLoic Bistuer
The original patch for custom prefetches didn't allow usage of custom queryset for single valued relations (along ForeignKey or OneToOneKey). Allowing these enables calling performance oriented queryset methods like select_related or defer/only. Thanks @akaariai and @timgraham for the reviews. Refs #17001.
2014-03-03Fixed broken tests on Python 3 after 3c5fc708f1a8f60c05182869f6f3ec13697bbcf2.Baptiste Mispelon
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03Fixed #22135 -- Added ModelAdmin.get_changeform_initial_data().Greg Chapple
Allows custom behavior for setting initial form data in ModelAdmin. By default, initial data is set via GET params. The new method allows this behavior to be overridden. Thanks egasimus for the suggestion.
2014-03-03Corrected expected test output to allow for cleanups in signal and ↵Russell Keith-Magee
compatibility checks.
2014-03-03Edited model and field checks for grammar and consistency.Russell Keith-Magee
2014-03-03Edited model check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Edited MySQL-specific check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Edited contrib.sites check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Cleanup of contrib.contenttypes check messages.Russell Keith-Magee
2014-03-03Edited contrib.admin check messages for grammar and consistency.Russell Keith-Magee
2014-03-02Fixed #22130 -- fixed template_tests/defaultfilters order dependent test failureErik Romijn
2014-03-01Added newline for flake8.Tim Graham
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-03-01Fixed #22130 -- Deprecated fix_ampersands, removed utils.clean_html()Erik Romijn
2014-03-01Fixed #15318 -- Added settings for language cookie max-age, path, domainSergey Kolosov
Introduced a number of settings to configure max-age, path, and domain for the language cookie: LANGUAGE_COOKIE_AGE, LANGUAGE_COOKIE_PATH and LANGUAGE_COOKIE_DOMAIN. Thanks sahid for the suggestion.
2014-03-01Fixed #22168 -- Fixed migrations failing on sqlite when column names are SQL ↵Baptiste Mispelon
keywords Thanks to trac user fallen_flint for the report and initial patch.
2014-03-01Added patch_formats utility for i18n formatting testsClaude Paroz
2014-02-28Added release note and regression test for refs #21643.Tim Graham
This will be backported to stable/1.6.x along with the original fix.
2014-02-28Removed Django 1.5 upgrade hints for {% url %} tag.Tim Graham
Refs #19280 and Refs #19392.
2014-02-28Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()vvojvoda
2014-02-28Replaced deprecated assertEqualsClaude Paroz
2014-02-26Fixed #22056 -- Omitted non-package directories when collecting testsClaude Paroz
This allows us to ignore empty dirs or other unrelated dirs. Thanks Sebastian Pawluś for the report and the initial patch.
2014-02-26Fixed #21389 -- Accept most valid language codesBouke Haarsma
By removing the 'supported' keyword from the detection methods and only relying on a cached settings.LANGUAGES, the speed of said methods has been improved; around 4x raw performance. This allows us to stop checking Python's incomplete list of locales, and rely on a less restrictive regular expression for accepting certain locales. HTTP Accept-Language is defined as being case-insensitive, based on this fact extra performance improvements have been made; it wouldn't make sense to check for case differences.
2014-02-23Added tests for django.contrib.admindocsGreg Chapple
Refs #22015
2014-02-23Two whitespace changes to appease flake8Alex Gaynor
2014-02-23Fixed #22095 -- Enabled backward migrations for RunPython operationsAndrew Gorcester
Added reversible property to RunPython so that migrations will not refuse to reverse migrations including RunPython operations, so long as reverse_code is set in the RunPython constructor. Included tests to check the reversible property on RunPython and the similar RunSQL.
2014-02-22Fixed #21741 -- Fixed render_to_string to stop pushing empty dictionaries to ↵Baptiste Mispelon
its Context Thanks to kezabelle for the report and original patch and to numerodix for his improved patch.
2014-02-22Fixed #22120 -- Documented persistent activation of languages and cleaned up ↵Erik Romijn
language session key use
2014-02-22Fixed #22123 -- EmailValidator now also accepts IPv6 literals in addressesErik Romijn
2014-02-22Fixed #21435 -- Improved error message when urlconf is empty.Baptiste Mispelon
The new error message now hints that the most likely issue is a circular import. Thanks to trac user elena for the report and to bpeschier for the original patch.
2014-02-22Deprecated django.utils.text.javascript_quote.Baptiste Mispelon
Refs #21725.
2014-02-22Fixed test failures when running in a narrow Python build.Baptiste Mispelon
2014-02-22Added some tests for #21725.Baptiste Mispelon
2014-02-22Added tests and minified javascript missing in ↵Bas Peschier
83a3add4bed8d8d49f93b30c817c66908b0a26ba. Refs #22038.
2014-02-20Fixed #22107 -- Fixed django.core.files.File object iteration.Baptiste Mispelon
Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch.
2014-02-20Fixed #22097 -- Fixed change detection for TypedChoiceFieldClaude Paroz
Thanks Igor Mitrenko for the report.
2014-02-18flake8 fixes (unused imports and variables).Tim Graham
2014-02-18Fixed #21732 -- Made compilemessages complain about non-writable locationClaude Paroz
Instead of crashing with a CommandError, now a non-writable location of mo files will only make compilemessages complain and continue. Thanks Ramiro Morales for the review.
2014-02-18Replaced 'test' by 'sqlall' management command in reverse_lazy testClaude Paroz
2014-02-18Removed BaseCommand.stdin introduced in ↵Baptiste Mispelon
116d39842dab2569013856e9f3701a7cb6554f09. This option is not actually very useful in the general case because it doesn't override sys.stdin. It's still marginally useful for testing some features of the createsuperuser command so it was moved there. This commit also makes the detection of a TTY in createsuperuser a bit more robust, after a suggestion of appolo13.
2014-02-18Fixed #22057 -- Ensured reverse_lazy can be used in settingsClaude Paroz
And without causing a circular import. Thanks Akis Kesoglou for the report.
2014-02-17Fixed #22073 - Ensure CreateTable operation handles backwards migration ↵Ben Davis
correctly when M2M fields are present
2014-02-17Fixed #22023 -- Raised an error for values() followed by defer() or only().Artur Frysiak
Previously, doing so resulted in invalid data or crash. Thanks jtiai for the report and Karol Jochelson, Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.