mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
Refs #32365 -- Removed is_dst argument for various methods and functions.
Per deprecation timeline.
This commit is contained in:
@@ -1372,11 +1372,7 @@ class QuerySet(AltersData):
|
||||
.order_by(("-" if order == "DESC" else "") + "datefield")
|
||||
)
|
||||
|
||||
# RemovedInDjango50Warning: when the deprecation ends, remove is_dst
|
||||
# argument.
|
||||
def datetimes(
|
||||
self, field_name, kind, order="ASC", tzinfo=None, is_dst=timezone.NOT_PASSED
|
||||
):
|
||||
def datetimes(self, field_name, kind, order="ASC", tzinfo=None):
|
||||
"""
|
||||
Return a list of datetime objects representing all available
|
||||
datetimes for the given field_name, scoped to 'kind'.
|
||||
@@ -1400,7 +1396,6 @@ class QuerySet(AltersData):
|
||||
kind,
|
||||
output_field=DateTimeField(),
|
||||
tzinfo=tzinfo,
|
||||
is_dst=is_dst,
|
||||
),
|
||||
plain_field=F(field_name),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user