summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-31Refs #32594 -- Added Signal.disconnect() test with a model class.Hugo Cachitas
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-03-31Fixed #32204 -- Added quick filter to admin's navigation sidebar.Maxim Milovanov
2021-03-31Refs #32105 -- Moved ExceptionReporter template paths to properties.William Schwartz
Refs #32316.
2021-03-30Fixed #31840 -- Added support for Cross-Origin Opener Policy header.bankc
Thanks Adam Johnson and Tim Graham for the reviews. Co-authored-by: Tim Graham <timograham@gmail.com>
2021-03-30Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.Mariusz Felisiak
2021-03-30Refs #32595 -- Added MySQL's SchemaEditor.quote_value() tests for values ↵Mariusz Felisiak
with Unicode chars.
2021-03-30Fixed #29127 -- Prevented DiscoverRunner from hiding tagged test with syntax ↵Chris Jerdonek
errors. This mades _FailedTest objects always match tags in DiscoverRunner.
2021-03-30Fixed #32260 -- Made View.as_view() do not use update_wrapper().Daniyal
View.as_view() should not use update_wrapper() for copying attributes it's unintended and have side-effects such as adding `self` to the signature. This also fixes system check for arguments of custom error handler views with class-based views. Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2021-03-30Refs #32260 -- Made admindocs and technical 404 debug page use ↵Adam Johnson
view_func.view_class. Internals of admindocs and technical 404 debug page should use the view_class attribute and do not rely on __name__.
2021-03-30Removed dead link in docs/topics/http/sessions.txt.arcanemachine
2021-03-29Fixed #32572 -- Improved ResolverMatch.__repr__().Nick Pope
When a partial function was passed as the view, the __repr__() would show the `func` argument as `functools.partial` which isn't very helpful, especially as it doesn't reveal the underlying function or arguments provided.
2021-03-29Fixed #31487 -- Added precision argument to Round().Nick Pope
2021-03-29Simplified and optimized test_match_tags().Chris Jerdonek
This simplifies and optimizes runner.py's test_match_tags() because it (1) uses isdisjoint() instead of intersection(), which involves constructing a new set, (2) eliminates a set operation when tags is falsey, (3) eliminates the need for a matched_tags variable, and (4) uses fewer not's, which should make it easier to parse and understand.
2021-03-29Fixed #32585 -- Fixed Value() crash with DecimalField on SQLite.Hasan Ramezani
2021-03-26Fixed #32591 -- Made DiscoverRunner order _FailedTest objects first.Chris Jerdonek
Failures detected when loading tests are ordered before all of the above for quicker feedback. This includes things like test modules that couldn't be found or that couldn't be loaded due to syntax errors.
2021-03-26Refs #32355 -- Corrected comments about Python's _NamespacePath.William Schwartz
_NamespacePath supports indexing in Python 3.8+.
2021-03-26Added missing mode="rb" argument to open() call in Client.post() example in ↵John
docs.
2021-03-26Fixed #32580 -- Doc'd that HttpRequest.get_host() may raise DisallowedHost.sreehari1997
2021-03-25Refs #31003 -- Moved note about return value of QuerySet.bulk_create() to ↵Claude Paroz
the first paragraph.
2021-03-25Fixed #32578 -- Fixed crash in CsrfViewMiddleware when a request with Origin ↵Chris Jerdonek
header has an invalid host.
2021-03-25Fixed RemoteTestResultTest tests without tblib.Mariusz Felisiak
Follow up to e3bca22e7e572b0274a0814c7869c899d7b544e0.
2021-03-25Doc'd that RawSQL can be used with __in.Simon Willison
2021-03-25Refs #32579 -- Fixed cookie domain comment in CsrfViewMiddleware.process_view().Chris Jerdonek
2021-03-25Refs #32579 -- Optimized good_hosts creation in ↵Chris Jerdonek
CsrfViewMiddleware.process_view().
2021-03-25Fixed #32582 -- Removed unnecessary dot in names of cloned test databases on ↵Girish Sontakke
SQLite.
2021-03-24Fixed typo in DiscoverRunner --reverse help text.Chris Jerdonek
2021-03-24Refs #32532 -- Added DiscoverRunner.load_tests_for_label().Chris Jerdonek
2021-03-24Optimized FkConstraintsTests.test_check_constraints by specifying a database ↵Mariusz Felisiak
table.
2021-03-24Removed trailing whitespaces in error messages.Mariusz Felisiak
2021-03-24Fixed #29606 -- Added type check for ALLOWED_HOSTS setting.Adam Donaghy
2021-03-24Fixed #32460 -- Allowed "label"/"do_not_call_in_templates" members in model ↵Nick Pope
choice enums.
2021-03-24Refs #32460 -- Doc'd and tested that property names of model choice enums ↵Nick Pope
cannot be used as members.
2021-03-24Fixed page numbers in Paginator.get_elided_page_range() example in docs.Jannis Vajen
2021-03-23Fixed #32573 -- Fixed bounds in __iso_year lookup optimization.Florian Demmer
2021-03-23Optimized django.utils.text.capfirst().Nick Pope
Unconditionally coercing to str type twice is expensive.
2021-03-23Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.Mariusz Felisiak
Different PROJ versions use different transformations, all are correct as having a 1 meter accuracy. These are differences in PROJ versions that cannot and should not be handled in Django itself. Thanks Jani Tiainen and David Smith for reports. See: https://github.com/OSGeo/gdal/issues/3377
2021-03-23Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵Mariusz Felisiak
transforms with booleans on SQLite. Thanks Matthew Cornell for the report.
2021-03-23Refs #32483 -- Added tests QuerySet.values()/values_list() on key transforms ↵Mariusz Felisiak
with structures containing booleans.
2021-03-23Refs #31936 -- Added tests for __in lookup on JSONField key transforms with ↵Mariusz Felisiak
booleans.
2021-03-22Refs #31732 -- Fixed django.utils.inspect caching for bound methods.Adam Johnson
Thanks Alexandr Artemyev for the report, and Simon Charette for the original patch.
2021-03-22Refs #31372 -- Added django.utils.inspect tests for bound methods.Adam Johnson
2021-03-22Updated my entry in AUTHORS.Alex Dutton
2021-03-22Fixed #32576 -- Corrected dumpdata docs for passing model names to the ↵tim-mccurrach
--exclude option.
2021-03-22Made CsrfViewMiddlewareTestMixin._get_GET_no_csrf_cookie_request() return ↵Mariusz Felisiak
GET requests.
2021-03-22Fixed #32581 -- Prevented to_locale() from corrupting locale names.Claude Paroz
2021-03-22Added to_locale() tests for 3-char language codes.Claude Paroz
2021-03-19Fixed #32556 -- Fixed handling empty string as non-boolean attributes value ↵Baptiste Mispelon
by assertHTMLEqual().
2021-03-19Refs #32556 -- Added django.test.html.normalize_attributes().Baptiste Mispelon
2021-03-19Fixed #32570 -- Removed unnecessary default_auto_field in app config example.kshitijraghav
2021-03-19Fixed #32571 -- Made CsrfViewMiddleware handle invalid URLs in Referer header.Adam Donaghy