code: def handle(self, *args, **options):
          
          self.stdout.write('Apply settings to index:')
          for model in get_registered_model():
              if options.get('model', None) and not (model.__name__ in
                                                     options['model']):
                  continue
  
              get_adapter(model).set_settings()
              self.stdout.write('\t* {}'.format(model.__name__))
docs: Run the management command.