diff --git a/django-stubs/db/models/functions/datetime.pyi b/django-stubs/db/models/functions/datetime.pyi index 8e96e0a41..ea013ef5c 100644 --- a/django-stubs/db/models/functions/datetime.pyi +++ b/django-stubs/db/models/functions/datetime.pyi @@ -34,6 +34,8 @@ class ExtractSecond(Extract): ... class Now(Func): output_field: ClassVar[models.DateTimeField] + def as_oracle(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any) -> _AsSqlType: ... + class TruncBase(TimezoneMixin, Transform): kind: str tzinfo: Any diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index f0bbe3cd2..22c6f8700 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -48,8 +48,6 @@ django.db.models.fields.related.ForwardManyToOneDescriptor.get_prefetch_queryset django.db.models.fields.related.ReverseOneToOneDescriptor.get_prefetch_querysets django.db.models.fields.related_descriptors.ForwardManyToOneDescriptor.get_prefetch_querysets django.db.models.fields.related_descriptors.ReverseOneToOneDescriptor.get_prefetch_querysets -django.db.models.functions.Now.as_oracle -django.db.models.functions.datetime.Now.as_oracle django.db.models.lookups.Lookup.allowed_default django.db.models.sql.Query.build_filtered_relation_q django.db.models.sql.Query.join