1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/django
Nick Pope 0c71e0f9cf Removed unnecessary reuse_with_filtered_relation argument from Query methods.
In Query.join() the argument reuse_with_filtered_relation was used to
determine whether to use == or .equals(). As this area of code is
related to aliases, we only expect an instance of Join or BaseTable to
be provided - the only two classes that provide .equals().

In both cases, the implementations of __eq__() and equals() are based
on use of the "identity" property. __eq__() performs an isinstance()
check first, returning NotImplemented if required. BaseTable.equals()
then does a straightforward equality check on "identity". Join.equals()
is a little bit different as it skips checking the last element of the
"identity" property: filtered_relation. This was only included
previously when the with_filtered_relation argument was True, impossible
since bbf141bcdc.
2021-04-28 21:19:42 +02:00
..
apps Refs #32355 -- Corrected comments about Python's _NamespacePath. 2021-03-26 10:17:10 +01:00
conf Fixed #31937 -- Eased translation of time strings in some languages. 2021-04-10 20:23:12 +02:00
contrib Fixed #32682 -- Made admin changelist use Exists() instead of distinct() for preventing duplicates. 2021-04-27 10:34:47 +02:00
core Fixed #32665 -- Fixed caches system check crash when STATICFILES_DIRS is a list of 2-tuples. 2021-04-21 09:41:37 +02:00
db Removed unnecessary reuse_with_filtered_relation argument from Query methods. 2021-04-28 21:19:42 +02:00
dispatch Refs #31327 -- Removed providing_args argument for Signal per deprecation timeline. 2021-01-14 17:50:04 +01:00
forms Fixed #32316 -- Deferred accessing __file__. 2021-04-01 14:33:30 +02:00
http Fixed CVE-2021-28658 -- Fixed potential directory-traversal via uploaded files. 2021-04-06 08:15:17 +02:00
middleware Fixed #31840 -- Added support for Cross-Origin Opener Policy header. 2021-03-30 19:59:24 +02:00
template Refs #24121 -- Added __repr__() to Origin and Template. 2021-03-17 07:49:55 +01:00
templatetags Fixed #18995 -- Made blocktranslate tag raise TemplateSyntaxError when plural count is not a number. 2020-09-29 08:03:51 +02:00
test Fixed #32641 -- Made DiscoverRunner print the number of found tests. 2021-04-15 11:42:46 +02:00
urls Refs #32260 -- Made admindocs and technical 404 debug page use view_func.view_class. 2021-03-30 06:51:27 +02:00
utils Fixed #31937 -- Eased translation of time strings in some languages. 2021-04-10 20:23:12 +02:00
views Refs 32637 -- Made technical 404 debug page display exception message when URL is resolved. 2021-04-27 08:40:52 +02:00
__init__.py Bumped version; master is now 4.0 pre-alpha. 2021-01-14 17:50:04 +01:00
__main__.py
shortcuts.py Made small readability improvements. 2020-10-28 20:20:20 +01:00