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