MCPcopy
hub / github.com/django/django / set_wrapper_classes

Method set_wrapper_classes

django/db/models/indexes.py:313–322  ·  view source on GitHub ↗
(self, connection=None)

Source from the content-addressed store, hash-verified

311 wrapper_classes = (OrderBy, Collate)
312
313 def set_wrapper_classes(self, connection=None):
314 # Some databases (e.g. MySQL) treats COLLATE as an indexed expression.
315 if connection and connection.features.collate_as_index_expression:
316 self.wrapper_classes = tuple(
317 [
318 wrapper_cls
319 for wrapper_cls in self.wrapper_classes
320 if wrapper_cls is not Collate
321 ]
322 )
323
324 @classmethod
325 def register_wrappers(cls, *wrapper_classes):

Callers 4

create_sqlMethod · 0.95
_get_expressionsMethod · 0.80

Calls

no outgoing calls

Tested by 1