summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-09Replaced Operation._get_model_tuple() by ModelTuple.from_model().Simon Charette
This method predated the introduction of ModelTuple and had a single use.
2020-04-09Made Operation.references_model/references_field require app_label.Simon Charette
This will allow them to drop a ton of logic to deal with null app_label.
2020-04-09Refs #22608 -- Made app_label required when optimizing migrations.Simon Charette
This paved the way for the removal of lot of logic when app_label was not specified.
2020-04-09Increased test coverage for forms.ImageField.to_python().David Smith
2020-04-08Fixed #31437 -- Corrected tests to show abstract multiple inheritance system ↵Carlton Gibson
check error. Added minimal multiple inheritance test case showing error. Removed obsolete diamond-inheritance case, originally added in 85ef98dc6ec565b1add417bd76808664e7318026.
2020-04-08Fixed typo in tests/backends/base/test_operations.py.Mariusz Felisiak
2020-04-08Refs #28184 -- Added test for FileField storage default.Carlton Gibson
Co-authored-by: miigotu <miigotu@gmail.com>
2020-04-08Fixed #28184 -- Allowed using a callable for FileField and ImageField storage.miigotu
2020-04-08Refs #30966 -- Added test for reloading related model state on ↵Mariusz Felisiak
non-relational changes. Thanks Markus Holtermann for initial test. Fixed in 1d16c5d562a67625f7309cc7765b8c57d49bf182.
2020-04-07Refs #31051 -- Made dumpdata do not sort dependencies if natural foreign ↵Matthijs Kooijman
keys are not used. There is no need to sort dependencies when natural foreign keys are not used.
2020-04-07Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman
Since #26291 forward references in natural keys are properly handled by loaddata, so sorting depenencies in dumpdata doesn't need to break on cycles. This patch allows circular references in natural keys by breaking sort_depenencies() on loops.
2020-04-07Fixed #31407 -- Adjusted test to avoid coroutine never awaited warning.Mark
2020-04-07Refs #26291 -- Added tests for dumpdata/loaddata with forward references ↵Matthijs Kooijman
without natural keys.
2020-04-07Refs #26291 -- Added tests for dumpdata with forward references in natural keys.Matthijs Kooijman
2020-04-07Refs #31051 -- Added test for loaddata/dumpdata with circular references ↵Matthijs Kooijman
without natural keys.
2020-04-07Enforced uniqueness of natural keys used in tests.Mariusz Felisiak
2020-04-07Fixed highlightlang deprecation warning on Sphinx 1.8+.Mariusz Felisiak
2020-04-07Fixed CodeBlock deprecation warning on Sphinx 2.1+.Mariusz Felisiak
2020-04-07Fixed Sphinx warnings on duplicate object descriptions.Mariusz Felisiak
2020-04-07Refs #29000 -- Restored delayed model rendering of RenameField.Simon Charette
Non-delayed rendering is unnecessary and wasteful now that state models relationship consistency on delayed reload is ensured. This partly reverts commit fcc4e251dbc917118f73d7187ee2f4cbf3883f36.
2020-04-07Refs #27666 -- Ensured relationship consistency on delayed reloads.Simon Charette
Delayed reloads of state models broke identity based relationships between direct and non-direct ancestors. Basing models.Options related objects map of model labels instead of their identity ensured relationship consistency is maintained. Refs #30966. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2020-04-07Fixed #31428 -- Allowed empty message in management command self.stdout/err ↵François Freitag
proxies.
2020-04-07Completed test coverage for forms.DurationField.to_python().David Smith
2020-04-07Fixed typo in tests/forms_tests/field_tests/test_imagefield.py test names.David Smith
2020-04-06Fixed #31030 -- Registered SQLite functions as deterministic on Python 3.8+.Sergey Fedoseev
2020-04-06Fixed #31426 -- Added proper field validation to QuerySet.order_by().Simon Charette
Resolve the field reference instead of using fragile regex based string reference validation.
2020-04-06Refs #7098 -- Deprecated passing raw column aliases to order_by().Simon Charette
Now that order_by() has expression support passing RawSQL() can achieve the same result. This was also already supported through QuerySet.extra(order_by) for years but this API is more or less deprecated at this point.
2020-04-06Fixed #31420 -- Fixed crash when filtering subquery annotation against a ↵Hasan Ramezani
SimpleLazyObject. Thanks Simon Charette for the solution and analysis.
2020-04-04Fixed #31423 -- Clarified nested atomic() example.Simon Charette
2020-04-04Fixed #31415 -- Fixed crash when nested OuterRef is used with operators or ↵Hasan Ramezani
in database functions.
2020-04-02Fixed #31275 -- Optimized sql_flush() without resetting sequences on MySQL.c-bata
Co-Authored-By: Simon Charette <charettes@users.noreply.github.com>
2020-04-02Refs #31051 -- Optimized serialize_db_to_string() by avoiding creation of ↵Matthijs Kooijman
models list.
2020-04-02Refs #31051 -- Fixed reloading the database with circular related objects ↵Matthijs Kooijman
and natural keys for tests. Made deserialize_db_from_string() do not sort dependencies. deserialize_db_from_string() doesn't use natural keys, so there is no need to sort dependencies in serialize_db_to_string(). Moreover, sorting models cause issues for circular dependencies.
2020-04-02Refs #26552 -- Added test for reloading the database with self-referential ↵Matthijs Kooijman
objects.
2020-04-02Fixed #31411 -- Used RENAME COLUMN on MariaDB 10.5.2+.Hasan Ramezani
2020-04-01Corrected docs spelling of PgBouncer.Carlton Gibson
2020-04-01Prevented (and corrected) single backtick usage in docs.Adam Johnson
2020-04-01Fixed #31380 -- Added deployment system check for DJANGO_ALLOW_ASYNC_UNSAFE ↵hashlash
environment variable.
2020-04-01Refs #31320 -- Warned against using BEGIN/COMMIT in RunSQL.Adam Johnson
2020-04-01Refs #12990 -- Moved PostgresSimpleLookup to the ↵Mariusz Felisiak
django.db.models.lookups.PostgresOperatorLookup.
2020-04-01Added stub release notes for 3.0.6.Carlton Gibson
2020-04-01Added release dates for 2.1.12 and 3.0.5.Carlton Gibson
2020-03-31Removed unused link in docs/faq/help.txt.Mariusz Felisiak
Unused since its introduction in 97cb07c3a10ff0e584a260a7ee1001614691eb1d.
2020-03-31Refs #31040 -- Used 402 HTTP status in middleware_exceptions tests.Mariusz Felisiak
HTTP status code 418 - "I'm a Teaport" was added to http.HTTPStatus in Python 3.9.0a5 [1] that caused failures in middleware_exceptions tests. This changes HTTP status used in middleware_exceptions tests to 402, which exists in all supported versions of Python. [1] https://docs.python.org/3.9/whatsnew/3.9.html#http
2020-03-31Fixed #31375 -- Made contrib.auth.hashers.make_password() accept only bytes ↵Hasan Ramezani
or strings.
2020-03-31Refs #31375 -- Added test for contrib.auth.hashers.make_password() bytes ↵Hasan Ramezani
support.
2020-03-31Fixed #30864 -- Doc'd classproperty decorator.Deep Sukhwani
2020-03-31Fixed #31403 -- Added support for returning fields from INSERT statements on ↵Adam Johnson
MariaDB 10.5+.
2020-03-31Refs #31403 -- Made SQLInsertCompiler.execute_sql() always return an ↵Adam Johnson
iterable of rows. List of tuples.
2020-03-30Fixed links in Getting Help FAQ.Adam Johnson
Follow up to 6ef4c8aa9f887f72ebdacff229b9012686272e3a,