code: def register_simple_chooser(self, model, **kwargs):
          
          name = '{}Chooser'.format(model._meta.object_name)
          attrs = {'model': model}
          attrs.update(kwargs)
  
          chooser = type(name, (Chooser,), attrs)
          self.register_chooser(chooser)
  
          return model
docs: Generates a model chooser definition from a model, and adds it to the
          registry.