summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2014-02-28Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()vvojvoda
2014-02-27Fixed #22136 -- Updated comment for Textarea widgetClaude Paroz
Thanks Aymeric Augustin for the suggestion.
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-25Fixed bad grammar in a comment.Martin Matusiak
2014-02-23Allowed some auth tests to be run independentlyClaude Paroz
2014-02-23Removed incorrect statement from docstringPatrick Robertson
The docstring of FilterExpression said that it shouldn't be instantiated from anywhere but the get_filters_from_token helper function. However, that helper function was deleted in commit 3ede006fc98f7e96ae9fb997872f78635576d5f8 and FilterExpression is instantiated from inside the compile_filter help function.
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 #22113 -- changed object_name to model_name in CBV docs.Marcin Sokół
Thanks to trac user nikunj.sg for the report.
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-22Extra new line to make flake8 happyAlex Gaynor
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-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-19Fixed #19647 -- Added formats.py for Esperanto.Baptiste Darthenay
Thanks to Objectivesea and Guttorm Flatabø (dittaeva)!
2014-02-18Fixed #21790 -- Removed reliance on an assert in auth.get_user().Tim Graham
Thanks matklad for the report.
2014-02-18flake8 fixes (unused imports and variables).Tim Graham
2014-02-18Made content_type_extra optional for TemporaryUploadedFile and ↵Dmitro
MemoryUploadedFile. This provides better backwards compatibility for those constructing these objects manually. Refs #13721.
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-18Fixed broken tests when running with a non-TTY stdin.Baptiste Mispelon
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-18Consolidated all tests for createsuperuser in the same TestCase.Baptiste Mispelon
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.
2014-02-17Fixed #7423 -- Skip superuser creation when not running in a TTY.Baptiste Mispelon
Thanks to trac user galaxy4sale for the original report and to AeroNotix for the patch.
2014-02-17Added the possibility to pass a stdin object to a management command.Baptiste Mispelon
This makes testing certain features easier. Thanks to AeroNotix for the original patch.
2014-02-17Merge pull request #2270 from bmispelon/ticket-22030Andrew Godwin
Fixed #22030 -- Don't assume that all fields have a swappable_setting at...
2014-02-16Fixed #19980: Signer broken for binary keys (with non-ASCII chars).MattBlack85
With this pull request, request #878 should considered closed. Thanks to nvie for the patch.
2014-02-16Made the new template.Context.flatten() method a public API.Marek Wywiał
That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651. Refs #21765.
2014-02-16Fixed #21939 -- Deprecated loading ssi/url tags from future.Zbigniew Siciarz
2014-02-15Fixed bad comparison logic introduced in ↵Baptiste Mispelon
d97bf2e9c8971764690caaf81a0914bc368d6b02. Refs #21765. Thanks to kezabelle for the quick report and to onjin for providing the patch.
2014-02-15Split line and added indentation for better readability.Aleksander Budzinski
2014-02-15Corrected a pair of flake8 violationsAlex Gaynor
2014-02-15Fixed #21725 -- Fixed JavaScript quoting encoding.MattBlack85
Thanks to nedbatchelder for the report.
2014-02-15Improved fix for #18373 -- backward compatibilityGrzegorz Nosek
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
2014-02-15Fixed #22047 -- detecting related_name clash with inheritanceChristopher Medrela
Thanks to mondone for fruitful colaboration.
2014-02-15Fixed some flake8 errors from recent commits.Tim Graham
2014-02-15Fixed #21912 -- Improved error message if a view returns None.Aaron France
Thanks brycenesbitt for the report.
2014-02-15Fixed #21765 -- Added support for comparing Context instancesMarek Wywiał
2014-02-15Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek
When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
2014-02-15Fixed #19299 -- Fixed Nullification of Foreign Keys To CharFieldsAlbert Wang
Thanks tunixman for the report and Baptiste Mispelon and Shai Berger for reviews.
2014-02-15Fixed two typos.Rodolfo Carvalho
2014-02-15Fixed typo in comment.Rodolfo Carvalho
2014-02-15Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France
Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
2014-02-15Fixed typo in test docstring.Rodolfo Carvalho
2014-02-15Moved relative URL handling added in refs #21177 to a better place.Tim Graham
Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."