summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-08-20Fixed #29667 -- Prohibited whitespaces in path() URLs.Hasan Ramezani
2019-08-20Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin ↵Nick Pope
and refactored AutoFields. This reduces duplication by allowing AutoField, BigAutoField and SmallAutoField to inherit from IntegerField, BigIntegerField and SmallIntegerField respectively. Doing so also allows for enabling the max_length warning check and minimum/maximum value validation for auto fields, as well as providing a mixin that can be used for other possible future auto field types such as a theoretical UUIDAutoField.
2019-08-19Moved migrations.test_operations.OperationTestBase to migrations.test_base.Mads Jensen
Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
2019-08-19Fixed #29260 -- Skipped an UPDATE when adding a model instance with primary ↵Hasan Ramezani
key that has a default.
2019-08-18Refs #28428 -- Made FileField.upload_to support pathlib.Path.Claude Paroz
2019-08-18Refs #28428 -- Added test for a callable FileField.upload_to that returns ↵Claude Paroz
pathlib.Path.
2019-08-18Refs #30426 -- Changed default SECURE_CONTENT_TYPE_NOSNIFF to True.Claude Paroz
2019-08-17Fixed #29545 -- Fixed using filter lookups againts nested subquery expressions.Simon Charette
Made sql.Where resolve lhs of its child nodes. This is necessary to allow filter lookups against nested subquery expressions to properly resolve their OuterRefs to Cols. Thanks Oskar Persson for the simplified test case.
2019-08-16Fixed #30701 -- Updated patch_vary_headers() to handle an asterisk according ↵Adnan Umer
to RFC 7231.
2019-08-16Fixed #30687 -- Fixed using of OuterRef() expressions in distance lookups.Andrew Brown
2019-08-15Refs #30449 -- Made RelatedOnlyFieldListFilter respect ModelAdmin.ordering.zeyneloz
2019-08-15Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to ↵zeyneloz
respect model's Meta.ordering. Regression in 6d4e5feb79f7eabe8a0c7c4b87f25b1a7f87ca0b. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-08-14Fixed #30672 -- Fixed crash of JSONField/HStoreField key transforms on ↵Mariusz Felisiak
expressions with params. Regression in 4f5b58f5cd3c57fee9972ab074f8dc6895d8f387. Thanks Florian Apolloner for the report and helping with tests.
2019-08-13Fixed #30461 -- Made GeoIP2 and GEOIP_PATH setting accept pathlib.Path as ↵Claude Paroz
library path. Thanks Nikita Krokosh for the initial patch.
2019-08-13Refs #30461 -- Added django.utils._os.to_path().Claude Paroz
2019-08-13Fixed #30704 -- Fixed crash of JSONField nested key and index transforms on ↵Mariusz Felisiak
expressions with params. Thanks Florian Apolloner for the report and helping with tests.
2019-08-12Corrected multiple typos.Min ho Kim
2019-08-12Switched to use `HTTP_X_FORWARDED_PROTO` custom header in tests. Min ho Kim
This is the conventional name: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
2019-08-12Refs #25367 -- Added test for Exists() lookup rhs.Simon Charette
2019-08-12Refs #11964 -- Made constraint support check respect required_db_features.Simon Charette
This will notably silence the warnings issued when running the test suite on MySQL.
2019-08-11Fixed #30677 -- Improved error message for urlencode() and Client when None ↵swatantra
is passed as data.
2019-08-09Fixed #29008 -- Fixed crash of 404 debug page when URL path converter raises ↵Ngalim Siregar
Http404.
2019-08-08Fixed #30673 -- Relaxed system check for db_table collision when database ↵Adnan Umer
routers are installed by turning the error into a warning.
2019-08-07Corrected several typos in string literals and test names.Min ho Kim
2019-08-07Fixed #30676 -- Added --pdb option to test runner.Andrew Godwin
2019-08-05Fixed #30680 -- Removed obsolete system check for SECURE_BROWSER_XSS_FILTER ↵Adnan Umer
setting.
2019-08-05Added tests for using ArrayField's IndexTransform/SliceTransform on ↵Mariusz Felisiak
expressions with params.
2019-08-05Fixed #28393 -- Added helpful error messages for invalid ↵Diederik van der Boor
AutoField/FloatField/IntegerField values. Co-authored-by: Diederik van der Boor <vdboor@edoburu.nl> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2019-08-02Fixed #30668 -- Made QuerySet.filter() raise NotSupportedError if any of ↵aaktsipetrov
source expressions is not filterable.
2019-08-02Fixed #30661 -- Added models.SmallAutoField.Nick Pope
2019-08-02Fixed #30599 -- Prevented ManifestFilesMixin.read_manifest() from silencing ↵zeyneloz
errors other than FileNotFoundError.
2019-08-02Added test for handling of non-existent manifest in ↵zeyneloz
ManifestFilesMixin.read_manifest().
2019-08-01Refs #30664 -- Fixed migrations crash when altering AutoField/BigAutoField ↵Mariusz Felisiak
with quoted db_column on PostgreSQL.
2019-08-01Fixed #30664 -- Fixed migrations crash when altering table on SQLite or ↵Ngalim Siregar
altering AutoField/BigAutoField on PostgreSQL for models with quoted db_table.
2019-08-01Fixed CVE-2019-14235 -- Fixed potential memory exhaustion in ↵Florian Apolloner
django.utils.encoding.uri_to_iri(). Thanks to Guido Vranken for initial report.
2019-08-01Fixed CVE-2019-14234 -- Protected JSONField/HStoreField key and index ↵Mariusz Felisiak
lookups against SQL injection. Thanks to Sage M. Abdullah for the report and initial patch. Thanks Florian Apolloner for reviews.
2019-08-01Fixed CVE-2019-14233 -- Prevented excessive HTMLParser recursion in ↵Florian Apolloner
strip_tags() when handling incomplete HTML entities. Thanks to Guido Vranken for initial report.
2019-08-01Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when ↵Florian Apolloner
truncating HTML. Thanks to Guido Vranken for initial report.
2019-07-31Fixed #30665 -- Added support for distinct argument to Avg() and Sum().Étienne Beaulé
2019-07-31Moved test for distinct Count() to a separate test case.Étienne Beaulé
2019-07-31Fixed #30160 -- Added support for LZMA and XZ templates to ↵Nick Pope
startapp/startproject management commands.
2019-07-31Refs #30160 -- Simplified and improved tests for django.utils.archive.Nick Pope
The file executable should have 0o775 permission not only u=x. The file no_permissions should have 0o644 u=r.
2019-07-30Refs #30593 -- Fixed introspection of check constraints columns on MariaDB.Hasan Ramezani
2019-07-30Refs #30593 -- Added _parse_constraint_columns() hook to introspection on ↵Hasan Ramezani
MariaDB.
2019-07-30Removed redundant ArchiveTest.test_extract_method() test.Nick Pope
The extract() function has the same code as used in the test method for Archive.extract().
2019-07-30Refs #30160 -- Made destination path a required argument of extract().Nick Pope
2019-07-29Fixed #30411 -- Improved formatting of text tracebacks in technical 500 ↵Jerrod Martin
templates. Co-Authored-By: Daniel Hahler <git@thequod.de>
2019-07-27Fixed #30552 -- Fixed loss of SRID when calling reverse() on LineString/Point.Claude Paroz
Thanks Mariusz Felisiak for contributing the Point part.
2019-07-27Refs #28147 -- Fixed setting of OneToOne and Foreign Key fields to None when ↵Jon Dufresne
using attnames. Regression in 519016e5f25d7c0a040015724f9920581551cab0.
2019-07-27Added tests for using attnames to assign OneToOne and Foreign Key fields.Jon Dufresne