parameters: (self)
docstring: Connect to the Django signals following the configured operations.
docstring_summary: Connect to the Django signals following the configured operations.
docstring_tokens: Connect to the Django signals following the configured operations .
function: def register(self):
          """
          Connect to the Django signals following the configured operations.
          """
          global _event
  
          sender = self.get_target_model()
  
          if self.OP_CREATE in self.operations:
              post_save.connect(self.on_model_create, sender=sender)
  
          if self.OP_UPDATE in self.operations:
              post_save.connect(self.on_model_update, sender=sender)
  
          if self.OP_DELETE in self.operations:
              post_delete.connect(self.on_model_delete, sender=sender)
  
          if self.operations:
              _events.append(self)
function_tokens: def register ( self ) : global _event sender = self . get_target_model ( ) if self . OP_CREATE in self . operations : post_save . connect ( self . on_model_create , sender = sender ) if self . OP_UPDATE in self . operations : post_save . connect ( self . on_model_update , sender = sender ) if self . OP_DELETE in self . operations : post_delete . connect ( self . on_model_delete , sender = sender ) if self . operations : _events . append ( self )