From e2962b369e16a38ef718008282578af003d06684 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 9 Apr 2024 18:15:10 -0400 Subject: [PATCH] Remove obsolete DatabaseOperations.adapt_datetimefield/timefield_value() --- django_snowflake/operations.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/django_snowflake/operations.py b/django_snowflake/operations.py index a836dec..6404c28 100644 --- a/django_snowflake/operations.py +++ b/django_snowflake/operations.py @@ -112,18 +112,6 @@ def convert_uuidfield_value(self, value, expression, connection): value = uuid.UUID(value) return value - def adapt_datetimefield_value(self, value): - # Work around a bug in Django: https://code.djangoproject.com/ticket/33229 - if hasattr(value, 'resolve_expression'): - return value - return super().adapt_datetimefield_value(value) - - def adapt_timefield_value(self, value): - # Work around a bug in Django: https://code.djangoproject.com/ticket/33229 - if hasattr(value, 'resolve_expression'): - return value - return super().adapt_timefield_value(value) - def explain_query_prefix(self, format=None, **options): if format is None: format = 'TABULAR'