summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-07-06Fixed #23797 -- Fixed QuerySet.exclude() when rhs is a nullable column.Jacob Walls
2020-07-06Fixed #31530 -- Added system checks for invalid model field names in ↵Hasan Ramezani
CheckConstraint.check and UniqueConstraint.condition.
2020-07-01Fixed #31755 -- Made temporal subtraction resolve output field.Sergey Fedoseev
2020-07-01Refs #28621 -- Fixed crash of annotations with nested OuterRef.Sergey Fedoseev
2020-06-30Fixed #31752 -- Fixed intermittent ↵Carlton Gibson
test_order_by_relational_field_through_model failure. Set explicit datetime for M2M ordering test. Thanks to Mariusz Felisiak for the suggestion.
2020-06-30Fixed #28925 -- Fixed durations-only expressions crash on SQLite and MySQL.Sergey Fedoseev
This removes also unused DatabaseOperations.date_interval_sql().
2020-06-29Fixed #30807 -- Fixed TestArchive.test_extract_file_permissions() when umask ↵Ad Timmering
is 0o000. Fixed test that checks permissions on files extracted from archives with no permissions set, to not assume a default umask of 0o002. Test regression in c95d063e776e849cf1a0bf616c654165cb89c706.
2020-06-29Fixed #31745 -- Added error messages when using ↵Hannes Ljungberg
UniqueConstraint.include/opclasses with deferrable.
2020-06-26Fixed #31742 -- Fixed makemigrations crash on ForeignKey to an app with ↵Mariusz Felisiak
mixed case label. Regression in 9e1b6b8a66af4c2197e5b1b41eb9dbb36e4f6502. Thanks Ignacio Santolin for the report.
2020-06-26Fixed test_clean_does_deduplicate_values on Oracle after ↵Mariusz Felisiak
e13cfc6dfd4212ef7a40db1a41d3ae6ac4b97de0.
2020-06-26Fixed #31620 -- Added support for %V format to WeekMixin/WeekArchiveView.Hasan Ramezani
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
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-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-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-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-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-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-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-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-13Fixed #31691 -- Added ordering support to JSONBAgg.John Parton
2020-06-12Fixed #31649 -- Added support for covering exclusion constraints on ↵Hannes Ljungberg
PostgreSQL 12+.
2020-06-12Fixed #31491 -- Allowed 'password' option in DATABASES['OPTIONS'] on MySQL.Hasan Ramezani