original_docstring: Registers this admin class' model with django-watson.
docstring: Registers this admin class' model with django-watson.
docstring_tokens: Registers this admin class ' model with django - watson .
code: def register_model_with_watson(self):
          """Registers this admin class' model with django-watson."""
          if not self.search_engine.is_registered(self.model) and self.search_fields:
              self.search_engine.register(
                  self.model,
                  fields=self.search_fields,
                  adapter_cls=self.search_adapter_cls,
                  get_live_queryset=lambda self_: None,  # Ensure complete queryset is used in admin.
              )
code_tokens: def register_model_with_watson ( self ) : if not self . search_engine . is_registered ( self . model ) and self . search_fields : self . search_engine . register ( self . model , fields = self . search_fields , adapter_cls = self . search_adapter_cls , get_live_queryset = lambda self_ : None , )
short_docstring: Registers this admin class' model with django-watson.
short_docstring_tokens: Registers this admin class ' model with django - watson .
comment: """Registers this admin class' model with django-watson."""$SEP$# Ensure complete queryset is used in admin.