def _add_backend(self, backend):
md_type = backend.verbose_name<EOL>base = backend().get_model(self)<EOL>new_md_attrs = {'<STR_LIT>': self.metadata, '<STR_LIT>': __name__ }<EOL>new_md_meta = {}<EOL>new_md_meta['<STR_LIT>'] = '<STR_LIT>' % (self.verbose_name, md_type)<EOL>new_md_meta['<STR_LIT>'] = '<STR_LIT>' % (self.verbose_name_plural, md_type)<EOL>new_md_meta['<STR_LIT>'] = base._meta.unique_together<EOL>new_md_attrs['<STR_LIT:Meta>'] = type("<STR_LIT:Meta>", (), new_md_meta)<EOL>new_md_attrs['<STR_LIT>'] = backend.name<EOL>model = type("<STR_LIT>"%(self.name,"<STR_LIT>".join(md_type.split())), (base, self.MetadataBaseModel), new_md_attrs.copy())<EOL>self.models[backend.name] = model<EOL>globals()[model.__name__] = model<EOL>
Builds a subclass model for the given backend