MCPcopy
hub / github.com/django/django / as_sql

Method as_sql

tests/aggregation/tests.py:69–72  ·  view source on GitHub ↗
(self, compiler, connection, **extra_context)

Source from the content-addressed store, hash-verified

67 output_field = DateTimeField()
68
69 def as_sql(self, compiler, connection, **extra_context):
70 if connection.features.test_now_utc_template:
71 extra_context["template"] = connection.features.test_now_utc_template
72 return super().as_sql(compiler, connection, **extra_context)
73
74
75class AggregateTestCase(TestCase):

Callers 10

test_pickleMethod · 0.45
test_as_sqlMethod · 0.45
test_inherited_fieldsMethod · 0.45
test_joined_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected