summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-10-18Fixed #30890 -- Added MariaDB support for the relate lookup.Mariusz Felisiak
2019-10-18Added gis_tests.utils.mariadb hook.Mariusz Felisiak
2019-10-17Refs #28816 -- Prevented silencing data loss when decreasing ↵Hasan Ramezani
CharField.max_length for ArrayField.base_field on PostgreSQL.
2019-10-17Refs #12990 -- Moved CheckFieldDefaultMixin to the ↵sage
django.db.models.fields.mixins.
2019-10-15Refs #27910 -- Added __init__.py file for model_enums tests.Mariusz Felisiak
2019-10-15Fixed #30872 -- Improved unknown command message when settings are manually ↵Carlton Gibson
configured.
2019-10-14Fixed #30870 -- Fixed showing that RunPython operations are irreversible by ↵Mariusz Felisiak
migrate --plan. Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the report.
2019-10-14Isolated migrations.test_commands.MigrateTests.test_migrate_plan.Mariusz Felisiak
2019-10-14Fixed #30868 -- Prevented unnecessary AlterField when renaming a referenced pk.Simon Charette
Regression introduced by dcdd219ee1, refs #25817. Thanks Carlos E. C. Leite for the report and Mariusz for the bisect.
2019-10-11Fixed #30014 -- Fixed ModelChoiceField validation when initial value is a ↵Etienne Chové
model instance. Thanks Carlton Gibson for reviews.
2019-10-11Added ModelChoiceField test for validation with to_field_name.Etienne Chové
2019-10-11Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is ↵Louise Grandjonc
key transform. Regression in 6c3dfba89215fc56fc27ef61829a6fff88be4abb.
2019-10-11Fixed #30854 -- Fixed QuerySet.select_related() with multiple FilteredRelations.Hasan Ramezani
2019-10-10Fixed #23755 -- Added support for multiple field names in the no-cache ↵Flavio Curella
Cache-Control directive to patch_cache_control(). https://tools.ietf.org/html/rfc7234#section-5.2.2.2
2019-10-10Refs #23755 -- Added tests for patch_cache_control() with no-cache ↵Flavio Curella
Cache-Control directive.
2019-10-10Fixed #30812 -- Made ConditionalGetMiddleware set ETag only for responses ↵Viktor Lomakin
with non-empty content.
2019-10-10Fixed #30300 -- Allowed migrations to be loaded from directories without ↵Benjy Weinberger
__init__.py file.
2019-10-09Fixed #30856 -- Combined fast-delete queries by model during cascade deletion.Simon Charette
Reduced the number of queries required when performing cascade deletion for a model referenced multiple time by another one by performing an union of reference lookups.
2019-10-08Fixed #30839 -- Fixed Field.__deepcopy__() so forms don't share error messages.Hasan Ramezani
2019-10-03Refs #27914 -- Fixed serialization of nested enum.Enum classes in migrations.Hasan Ramezani
2019-10-03Refs #27914 -- Moved test enum.Enum subclasses outside of ↵Hasan Ramezani
WriterTests.test_serialize_enums().
2019-10-02Fixed some typos in comments and docs.Min ho Kim
Thanks to Mads Jenson for review.
2019-10-02Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day ↵Anatol Ulrich
lookup.
2019-10-02Fixed #14218 -- Added Paginator.__iter__().Tanner Stirrat
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU
implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
2019-10-01Refs #30651 -- Added tests for Prefetch.__eq__().Mariusz Felisiak
2019-10-01Refs #30651 -- Added tests for Message.__eq__().Mariusz Felisiak
2019-10-01Fixed #30510 -- Fixed crash of QuerySet.bulk_create() with mixed-length ↵Ahmet Kucuk
texts on Oracle. Text with more than 4000 characters must be set to as a CLOB on Oracle what caused a mixed datatype error (ORA-01790) when shorter text appeared in the same operation.
2019-09-30Fixed #28690 -- Fixed handling of two-digit years in parse_http_date().Ad Timmering
Due to RFC7231 ayear that appears to be more than 50 years in the future are interpreted as representing the past.
2019-09-30Refs #28690 -- Added more tests for parse_http_date().Ad Timmering
2019-09-30Fixed #30774 -- Made serialization in migrations use members names for Enums.Hasan Ramezani
2019-09-27Fixed #30802 -- Prevented manifest creation when running collectstatic in ↵pablo
dry run mode.
2019-09-27Fixed #30798 -- Fixed Meta.ordering validation for pk of related fields.Hasan Ramezani
Regression in 440505cb2cadbe1a5b9fba246bcde6c04f51d07e.
2019-09-27Refs #30798 -- Prevented chaining fields from the same related model ↵Hasan Ramezani
multiple times in model Meta.ordering.
2019-09-27Fixed #30810 -- Fixed ↵Pablo García
WatchmanReloaderTests.test_setting_timeout_from_environment_variable test. client_timeout is an instance attribute.
2019-09-25Fixed #25598 -- Added SCRIPT_NAME prefix to STATIC_URL and MEDIA_URL set to ↵Oleg Kainov
relative paths. Thanks Florian Apolloner for reviews. Co-authored-by: Joel Dunham <Joel.Dunham@technicalsafetybc.ca>
2019-09-25Fixed #30800 -- Fixed migrations crash when altering a field with custom ↵Mariusz Felisiak
db_type(). Regression in 1378d665a1c85897d951f2ca9618b848fdbba2e7.
2019-09-25Fixed false positive tests of Paginator.count property.Maxim Kurnikov
2019-09-24Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen
EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
2019-09-24Refs #29444 -- Removed redundant ↵Mariusz Felisiak
DatabaseFeatures.can_return_multiple_columns_from_insert. Unnecessary since b31e63879eb5d9717e9f890401f7222e4f00c910.
2019-09-24Fixed #30796 -- Prevented select_related() from mutating a queryset on chaining.Simon Charette
Thanks Darren Maki for the report.
2019-09-23Fixed #13296 -- Fixed ordering by Options.order_with_respect_to after ↵Hasan Ramezani
deleting objects. Thanks Simon Meers for the original patch.
2019-09-23Fixed #29915 -- Added support for values with hyphens to pattern lookups for ↵Ian Foote
UUIDField on backends without UUID datatype. Support hyphens in iexact, contains, icontains, startswith, istartswith, endswith and iendswith UUIDField filters on backends without UUID datatype.
2019-09-23Refs #29915 -- Added tests for using pattern lookups with values without ↵Ian Foote
hyphens for UUIDField.
2019-09-21Dropped obsolete mimetype kwarg in csrf test viewClaude Paroz
2019-09-20Fixed #28622 -- Allowed specifying password reset link expiration in seconds ↵Hasan Ramezani
and deprecated PASSWORD_RESET_TIMEOUT_DAYS.
2019-09-20Fixed #30771 -- Fixed exact lookup against queries with selected columns.James Timmins
Use pre-existing select fields (and thereby GROUP BY fields) from subquery if they were specified, instead of always defaulting to pk. Thanks Aur Saraf for the report and Simon Charette for guidance.
2019-09-19Refs #27462 -- Added tests of pk_set in m2m_changed signal receivers for ↵Carlton Gibson
repeated add/remove calls.
2019-09-18Fixed #30772 -- Optimized make_template_fragment_key().Daniel Fairhead
Removed usage of urllib.quote(), unnecessary since cbbe60c7fc39fa8ff75554bd90104eaad6924bb1. Used hasher's .update() on key fragments.
2019-09-18Fixed #30776 -- Restored max length validation on ↵Sam Reynolds
AuthenticationForm.UsernameField. Regression in 5ceaf14686ce626404afb6a5fbd3d8286410bf13. Thanks gopackgo90 for the report and Mariusz Felisiak for tests.