summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-26Fixed #31743 -- Doc't that managed=False prevents Django from managing ↵Steven Pousty
tables modifications.
2020-06-26Fixed the centering of the "Log in" button on admin login page.Jon Dufresne
Previously, the button's container had a padding of 9.4em which was approximately center but not precisely. Now, the container uses 'align:text-center' to let the browser center the button.
2020-06-25Simplified label element CSS in admin login.css.Jon Dufresne
Don't add horizontal padding as the label is always displayed on its own line. This padding added no visual difference. Move the 'display: block' property from responsive.css to base.css. The label is already displayed on its own line in all viewports, so reduce differences in rendering. Using block also allows the label to consume the width of its container, creating a larger clickable area for a slight a11y improvement.
2020-06-25Removed unnecessary admin CSS.Jon Dufresne
The "object-tools" container is never rendered as a descendant of .form-row. The "golink" CSS class is unused. A <label> element has not been included in the login .submit-row since 5869afe32b9c252cacd327f18c58e38c36d1f530. The "help" CSS class from login.css has been unused since 0e5faf225c5cd1acf2ab653c74f5b161470403b9. The <label> color in login.css is already inherited from the <body> element and so does not need to be re-specified. The #content-main container already has the property 'width: 100%' from base.css and so does not need to be re-specified in login.css. The <td> and <th> font-family property is inherited from the <body> element and so does not need to be re-specified. The <html> element has the attribute dir which automatically sets the text direction in the layout. Adding the direction CSS property was necessary to support IE which does not support the dir attribute, but IE is no longer supported, so drop the direction property. The 'font-size: 1em' property re-specifies the same font size. It creates no visual difference. The 'font-size: 14px' property often re-specifies the inherited value. Avoid re-specifying it.
2020-06-25Fixed #31596 -- Changed ForeignKey.validate() to use the base manager.Jon Dufresne
2020-06-25Added test for django.contrib.admin.utils.help_text_for_field().Mariusz Felisiak
2020-06-25Refs #26761 -- Removed extra space in admin change list result header.Hasan Ramezani
2020-06-24Fixed typo in django/core/management/templates.py docstring.excursus
2020-06-24Defined output_field of Func() in ↵Simon Charette
test_grouping_by_annotations_with_array_field_param(). output_field cannot be automatically determined because the first argument passed to ARRAY_LEN is an ArrayField and the second one is an integer.
2020-06-24Refs #31493 -- Replaced var with const/let in documentation JS.Adam Johnson
2020-06-24Fixed #31523 -- Removed jQuery dependency from actions.js.Jon Dufresne
2020-06-24Fixed #31529 -- Added support for serialization of pathlib.Path/PurePath and ↵Nick Pope
os.PathLike in migrations.
2020-06-24Fixed #9061 -- Allowed FormSets to disable deleting extra forms.David Smith
Thanks to Dan Ward for the initial patch.
2020-06-24Fixed #31735 -- Fixed migrations crash on namespaced inline FK addition on ↵Simon Charette
PostgreSQL. The namespace of the constraint must be included when making the constraint immediate. Regression in 22ce5d0031bd795ade081394043833e82046016c. Thanks Rodrigo Estevao for the report.
2020-06-24Fixed #31703 -- Made makemigrations name all initial migrations "initial".Jon Dufresne
When the MigrationAutodetector creates more than one initial migration in a app, name all initial migrations "initial" rather than the opaque "auto_<DATE>_<TIME>" name. Initial migrations that have a descriptive name continue to use the descriptive name.
2020-06-24Refs #31703 -- Added Migration.suggest_name() test for initial migration ↵Jon Dufresne
with multiple CreateModels.
2020-06-24Refs #31703 -- Moved MigrationAutodetector.suggest_name() to Migration.Jon Dufresne
Allows expanding the method to inspect additional attributes of the migration instance. For example, the Migration.initial attribute.
2020-06-23Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper ↵Ahmad A. Hussein
crash on Windows.
2020-06-23Refs #31541 -- Updated Redirect.new_path.help_text.Yash Saini
2020-06-23Refs #31541 -- Added example of creating Redirect objects to redirects app docs.Yash Saini
2020-06-23Made small improvements to PostgreSQL operations docs.Adam Johnson
2020-06-23Refs #31692 -- Fixed compilemessages crash on Windows with Python < 3.8.Mariusz Felisiak
Regression in ed0a040773f5bad187170ab4e3b094fe3108d702. See https://bugs.python.org/issue31961
2020-06-23Fixed #31443 -- Fixed login redirection in auth mixins when LOGIN_URL is ↵Frantisek Holop
off-site URL.
2020-06-23Refs #31358 -- Added decode() to password hashers.Jon Moroney
By convention a hasher which does not use a salt should populate the decode dict with `None` rather than omit the dict key. Co-Authored-By: Florian Apolloner <apollo13@users.noreply.github.com>
2020-06-22Removed unused param_dict return from URLResolver.resolve_error_handler().Adam Johnson
Unused since its introduction in ed114e15106192b22ebb78ef5bf5bce72b419d13.
2020-06-22Fixed #16300 -- Improved singlehtml docs formatting with headers CSS.David Smith
2020-06-22Refs #5691 -- Made cache keys independent of USE_L10N.Claude Paroz
This mostly reverts af1893c4ff8fdbf227a43a559d90bb1c1238b01a.
2020-06-22Combined MySQL backend server info queries.Adam Johnson
2020-06-22Fixed #31692 -- Prevented unneeded .po file compilation.Claude Paroz
Thanks Nick Pope and Simon Charette for the reviews.
2020-06-22Refs #31692 -- Updated compilemessages and tests to use pathlib.Claude Paroz
2020-06-22Fixed #31728 -- Fixed cache culling when no key is found for deletion.Guillermo Bonvehí
DatabaseCache._cull implementation could fail if no key was found to perform a deletion in the table. This prevented the new cache key/value from being correctly added.
2020-06-18Refs #31670 -- Renamed whitelist argument and attribute of EmailValidator.David Smith
2020-06-18Fixed #6933 -- Added support for searching against quoted phrases in ↵Alix
ModelAdmin.search_fields.
2020-06-18Fixed #31716 -- Fixed detection of console scripts in autoreloader on Windows.Tom Forbes
2020-06-17Fixed #30933 -- Updated instructions for installing GeoDjango on Windows.David Smith
2020-06-17Adjusted model definition in GeoDjango tutorial.David Smith
The example uses the world border data set, where one of the entries has a null field value.
2020-06-17Refs #31670 -- Removed whitelist/blacklist terminology in docs and comments.David Smith
2020-06-17Fixed #30583 -- Fixed handling JSONFields in XML serializer.Hasan Ramezani
Co-authored-by: Chason Chaffin <chason@gmail.com>
2020-06-17Refs #28077 -- Added opclasses to Index.__repr__().Mariusz Felisiak
This also removes unnecessary commas between attributes.
2020-06-17Fixed #30472 -- Made Argon2PasswordHasher use Argon2id.Florian Apolloner
2020-06-17Refs #30472 -- Simplified Argon2PasswordHasher with argon2-cffi 19.1+ API.Florian Apolloner
2020-06-17Added test for old Argon2i hashes with version attribute.Florian Apolloner
2020-06-17Refs #30190 -- Minor edits to JSONL serializer.Mariusz Felisiak
Follow up to e29637681be07606674cdccb47d1e53acb930f5b.
2020-06-17Reverted "Pinned asgiref == 3.2.7 in test requirements."Mariusz Felisiak
This reverts commit dcb4d79ef719d824431a8b3ff8ada879bbab21cc.
2020-06-16Fixed #30190 -- Added JSONL serializer.Ali Vakilzade
2020-06-16Refs #30446 -- Defined default output_field of text database functions.Simon Charette
This prevented the default behavior of BaseExpression._resolve_output_field from error'ing out when such functions accepted both expressions from mixed types (e.g. SubStr(CharField, IntegerField, IntegerField)).
2020-06-16Fixed #31709 -- Added support for opclasses in ExclusionConstraint.Hannes Ljungberg
2020-06-16Pinned asgiref == 3.2.7 in test requirements.Mariusz Felisiak
2020-06-16Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint.Hannes Ljungberg
2020-06-15Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on ↵Tobias Krönke
MariDB and MySQL.