summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-24Corrected outputting BooleanField as HTML in forms docs.Tim Schilling
2020-04-24Doc'd PasswordChangeView/PasswordResetView.success_url defaults.Tanmay Vijay
2020-04-24Fixed typo in docs/intro/contributing.txt.Andy Chosak
2020-04-24Refs #30913 -- Added BaseDatabaseSchemaEditor._index_condition_sql().Hannes Ljungberg
2020-04-23Updated template language philosophy in DTL docs.David Smith
2020-04-23Fixed broken link to Watchmen configuration in docs/ref/django-admin.txt.Jon Dufresne
2020-04-23Fixed #29224 -- Fixed removing index_together indexes if exists ↵David Wobrock
unique_together constraint on the same fields.
2020-04-23Fixed #31500 -- Fixed detecting of unique fields in QuerySet.in_bulk() when ↵Hannes Ljungberg
using Meta.constraints. Detection of unique fields now takes into account non-partial unique constraints.
2020-04-22Avoided unnecessary recompilation of ordering clause regex in SQLCompiler.Adam Johnson
2020-04-22Added link to Mozilla's infosec page on web security. Mads Jensen
2020-04-22Made compress.py script use the official google-closure-compiler release.Jon Dufresne
The script previously used the PyPI package closure, which is slightly out of date and not maintained by Google. The JavaScript contribution docs and the compress.py script now runs the google-closure-compiler package in the recommended way. Google's documentation on usage and installation can be found at: https://github.com/google/closure-compiler-npm/tree/master/packages/google-closure-compiler#usage This also makes the usage simpler as the package now runs through npm's npx utility, which will automatically install google-closure-compiler to a per-user cache.
2020-04-22Fixed #31483 -- Rewrote change_form.js without jQuery.Jon Dufresne
The use of $(document).ready() was removed. The script is loaded at the end of the document. Therefore, the referenced DOM elements are already available and the script does not need to wait for the full DOM to be ready before continuing. Now that the script has no external dependencies, it can be loaded asynchronously. As such, the async attribute was added to the script element.
2020-04-22Refs #31483 -- Removed CSS and JavaScript for unused HTML class add-another.Jon Dufresne
The HTML class was removed in 07988744b347302925bc6cc66511e34224db55ab. As such, the CSS and JavaScript is unused.
2020-04-22Refs #29892 -- Fixed selenium test test_inline_formset_error_input_border on ↵Jon Dufresne
Firefox. Firefox does not include shorthand properties, such as "border", in the computed CSS properties object. This is documented at MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle > The returned CSSStyleDeclaration object contains active values for CSS > property longhand names. For example, border-bottom-width instead of > the border-width and border shorthand property names. It is safest to > query values with only longhand names like font-size. Shorthand names > like font will not work with most browsers. This difference between Firefox and Chrome is also discussed in the stackoverflow thread at: https://stackoverflow.com/a/32296604
2020-04-22Completed test coverage for forms.RegexField.David Smith
2020-04-22Updated admin's XRegExp to 3.2.0.Mariusz Felisiak
2020-04-22Fixed #31499 -- Stored ModelState.fields into a dict.Simon Charette
This allows the removal of its O(n) .get_field_by_name method and many other awkward access patterns. While fields were initially stored in a list to preserve the initial model definiton field ordering the auto-detector doesn't take field ordering into account and no operations exists to reorder fields of a model. This makes the preservation of the field ordering completely superflous because field reorganization after the creation of the model state wouldn't be taken into account.
2020-04-22Refs #31499 -- Ignored field ordering to determine ModelState equality.Simon Charette
2020-04-22Simplified collapse.js with Element.closest().Jon Dufresne
2020-04-21Improved readability of ESLint configuration.Jon Dufresne
Use "off"/"warn"/"error" instead of 0/1/2.
2020-04-21Fixed backends.oracle.test_operations.Mariusz Felisiak
Using unittest.TestCase doesn't work properly when we perform db queries. Moreover introspection is extremely slow on Oracle without limiting models to a "backends" app. Follow up to 8bcca47e8356521f52f0738d9633befd53007cae.
2020-04-21Refs #29983 -- Fixed displaying pathlib.Path database name in flush ↵Mariusz Felisiak
command's inputs.
2020-04-21Fixed #31479 -- Added support to reset sequences on SQLite.Jon Dufresne
2020-04-21Refs #30591 -- Adjusted table rebuild for non-pk relationship on SQLite.Simon Charette
The existing code was only accounting for primary key changes and not all unique key fields that can be referenced.
2020-04-21Fixed #31064 -- Recreated auto-created many-to-many tables on primary key ↵Simon Charette
data type change on SQLite. Both local and remote auto-created many-to-many relationships were affected.
2020-04-21Removed redundant import in tests/migrations/test_operations.py.Simon Charette
2020-04-20Stopped rebuilding referenced tables multiple times on SQLite alterations.Simon Charette
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-04-20Added assertions for an empty stdout to CoreCommandsNoOutputTests.Jon Dufresne
2020-04-20Refs #22463 -- Replaced JSHint with ESLint in contributing docs.Jignesh Kotadiya
2020-04-20Fixed #31474 -- Made QuerySet.delete() not return the number of deleted ↵Hasan Ramezani
objects if it's zero.
2020-04-20Disabled management commands output with verbosity 0 in various tests.François Freitag
Instead of capturing the command output and discard it immediately, tell the command not to log.
2020-04-20Removed unnecessary capturing of stdout/stderr in auth_tests.test_management.François Freitag
2020-04-20Updated iTunes podcast format link in syndication docs.David Smith
2020-04-20Refs #30165 -- Removed obsolete doc references to deprecated ugettext() & co.Jon Dufresne
The u-prefixed variants were removed from the documentation in 6eb4996672ca5ccaba20e468d91a83d1cd019801.
2020-04-20Fixed #31477 -- Removed "using" argument from ↵Jon Dufresne
DatabaseOperations.execute_sql_flush().
2020-04-20Fixed #24559 -- Made MigrationLoader.load_disk() catch more specific ↵Jon Dufresne
ModuleNotFoundError. Avoids inspecting the exception message, which is not considered a stable API and can change across Python versions. ModuleNotFoundError was introduced in Python 3.6. It is a subclass of ImportError that is raised when the imported module does not exist. It is not raised for other errors that can occur during an import. This exception instance has the property "name" which holds the name of module that failed to import.
2020-04-20Refs #29069 -- Added test for calling request_finished signal by static file ↵Tom Forbes
responses. Fixed in 41a3b3d18647b258331104520e76f977406c590d.
2020-04-18Simplified LongNameTest.test_sequence_name_length_limits_flush() with ↵Jon Dufresne
execute_sql_flush().
2020-04-17Fixed #30311 -- Restored ability to override global admin actions.hashlash
2020-04-17Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on ↵Jon Dufresne
PostgreSQL. The sql_flush() positional argument sequences is replaced by the boolean keyword-only argument reset_sequences. This ensures that the old function signature can't be used by mistake when upgrading Django. When the new argument is True, the sequences of the truncated tables will reset. Using a single boolean value, rather than a list, allows making a binary yes/no choice as to whether to reset all sequences rather than a working on a completely different set.
2020-04-17Simplified DatabaseOperations.sql_flush() on Oracle and PostgreSQL.Jon Dufresne
Added early return to decrease an indentation level.
2020-04-17Added test coverage for DatabaseOperations.sql_flush().Jon Dufresne
2020-04-17Refs #26552 -- Made reloading the database for tests check only loaded ↵Mariusz Felisiak
tables constraints.
2020-04-17Refs #31351 -- Made partial constraints tests use required_db_features.Mariusz Felisiak
This will notably silence the warnings issued when running the test suite on MySQL and MariaDB.
2020-04-16Fixed #29329 -- Made datetime logging from runserver more consistent.Hasan Ramezani
Setting default_msec_format=None will make it the same, unfortunately it's not supported by Python, see https://bugs.python.org/issue40300.
2020-04-16Fixed #31441 -- Ensured TabluarInline expands when child inputs have errors.Hasan Ramezani
2020-04-16Refs #31441 -- Added red border to inputs with errors for TabluarInline.Hasan Ramezani
2020-04-16Improved message example in admin actions documentation.Nick Pope
Avoid partial string construction and make use of ``ngettext`` to show example of how to handle plural variants with translations. Also make use of ``messages.SUCCESS`` to highlight customizing the style of the message - in this case it better fits what the message is conveying.
2020-04-16Fixed #31470 -- Fixed fieldset admin CSS to prevent overflowing <pre> elements.Nick Pope
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>